Function at 0x410160
Capabilities:
Check for peb ntglobalflag flag

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
push 0xffffffffffffffff
push 0x4281da
mov eax, dword fs:[0]
push eax
sub esp, 0x70
mov eax, dword [0x436024]
xor eax, esp
mov dword [esp + 0x68], eax
push ebx
push esi
push edi
mov eax, dword [0x436024]
xor eax, esp
push eax
lea eax, [esp + 0x80]
mov dword fs:[0], eax
mov eax, dword [ebp + 8]
mov dword [esp + 0x2c], eax
call fcn.00407680
mov dword [esp + 0x20], eax
mov ebx, 1
mov byte [eax + 0x15], bl
mov eax, dword [esp + 0x20]
mov dword [eax + 4], eax
mov eax, dword [esp + 0x20]
mov dword [eax], eax
mov eax, dword [esp + 0x20]
mov dword [eax + 8], eax
xor eax, eax
mov dword [esp + 0x24], eax
mov ecx, dword [ebp + 0xc]
push ecx
push 2
lea ecx, [esp + 0x24]
mov dword [esp + 0x90], eax
call fcn.00410760
test byte [0x436680], bl
jne 0x410202
or dword [0x436680], ebx
call fcn.00401bc0
push 0x428640
call fcn.0042585b
add esp, 4
lea esi, [esp + 0x3c]
mov eax, 0x436684
call fcn.0040ee30
mov byte [esp + 0x88], bl
mov eax, dword [eax]
lea esi, [esp + 0x28]
call fcn.00419060
mov byte [esp + 0x88], 3
mov eax, dword [esp + 0x3c]
add eax, 0xfffffff0
lea edx, [eax + 0xc]
or ecx, 0xffffffff
lock xadd dword [edx], ecx
dec ecx
test ecx, ecx
jg 0x41024a
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
lea ecx, [esp + 0x10]
push ecx
mov esi, str.detail1
call fcn.0040d290
mov byte [esp + 0x88], 4
mov eax, dword [esp + 0x28]
cmp dword [eax - 4], ebx
mov esi, dword [eax - 0xc]
jle 0x41027e
mov edx, esi
push edx
lea eax, [esp + 0x2c]
push eax
call fcn.004066f0
mov eax, dword [esp + 0x28]
push eax
lea ecx, [esp + 0x18]
push ecx
mov eax, esi
call fcn.004145f0
add esp, 8
mov esi, eax
lea edx, [esp + 0x10]
push edx
lea ecx, [esp + 0x20]
mov byte [esp + 0x8c], 5
call fcn.00411660
mov ebx, eax
mov eax, esi
call fcn.00406600
mov byte [esp + 0x88], 4
mov eax, dword [esp + 0x14]
add eax, 0xfffffff0
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x4102d7
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
mov byte [esp + 0x88], 3
mov eax, dword [esp + 0x10]
add eax, 0xfffffff0
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x4102ff
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
test byte [0x436680], 1
jne 0x410321
or dword [0x436680], 1
call fcn.00401bc0
push 0x428640
call fcn.0042585b
add esp, 4
push 0x60
lea ecx, [esp + 0x60]
push ecx
mov ecx, 0x436684
call fcn.00403fc0
mov byte [esp + 0x88], 6
cmp dword [esp + 0x70], 0x32000
jbe 0x4103a6
lea ecx, [esp + 0x5c]
call dword [sym.imp.MSVCP80.dll_public:_void___thiscall_std::basic_string_char__struct_std::char_traits_char___class_std::allocator_char__::clear_void_]
test byte [0x436680], 1
jne 0x410370
or dword [0x436680], 1
call fcn.00401bc0
push 0x428640
call fcn.0042585b
add esp, 4
push 0x20
lea edx, [esp + 0x44]
push edx
mov ecx, 0x436684
call fcn.00403fc0
push eax
lea ecx, [esp + 0x60]
mov byte [esp + 0x8c], 7
call dword [0x4291d4]
lea ecx, [esp + 0x40]
mov byte [esp + 0x88], 6
call dword [sym.imp.MSVCP80.dll_public:_void___thiscall_std::basic_string_char__struct_std::char_traits_char___class_std::allocator_char__::destructor_void_]
cmp dword [esp + 0x70], 0
je 0x41045a
lea eax, [esp + 0x10]
push eax
mov esi, str.detail2
call fcn.0040d290
mov byte [esp + 0x88], 8
cmp dword [esp + 0x74], 0x10
mov eax, dword [esp + 0x60]
jae 0x4103d7
lea eax, [esp + 0x60]
push eax
mov eax, dword [esp + 0x74]
lea ecx, [esp + 0x18]
push ecx
call fcn.004145f0
add esp, 8
mov esi, eax
lea edx, [esp + 0x10]
push edx
lea ecx, [esp + 0x20]
mov byte [esp + 0x8c], 9
call fcn.00411660
mov ebx, eax
mov eax, esi
call fcn.00406600
mov byte [esp + 0x88], 8
mov eax, dword [esp + 0x14]
add eax, 0xfffffff0
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x410432
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
mov byte [esp + 0x88], 6
mov eax, dword [esp + 0x10]
add eax, 0xfffffff0
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x41045a
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
mov edx, dword [0x4362a0]
mov eax, dword [edx + 0xc]
mov ecx, 0x4362a0
mov dword [esp + 0x10], 0
call eax
add eax, 0x10
mov dword [esp + 0x18], eax
mov byte [esp + 0x88], 0xa
mov ecx, dword [esp + 0x20]
mov esi, dword [ecx]
lea ebx, [esp + 0x1c]
mov dword [esp + 0x38], esi
mov dword [esp + 0x34], ebx
test ebx, ebx
mov edi, dword [esp + 0x20]
je 0x4104a3
lea edx, [esp + 0x1c]
cmp ebx, edx
je 0x4104a9
call dword [sym.imp.MSVCR80.dll__invalid_parameter_noinfo]
cmp esi, edi
je 0x410621
cmp dword [esp + 0x10], 0
je 0x4104c9
push 1
push 0x42ee88
lea eax, [esp + 0x20]
push eax
call fcn.00407340
test ebx, ebx
mov edi, dword [sym.imp.MSVCR80.dll__invalid_parameter_noinfo]
jne 0x4104d5
call edi
cmp esi, dword [ebx + 4]
jne 0x4104dc
call edi
mov edx, dword [esi + 0xc]
test edx, edx
jne 0x4104e7
xor eax, eax
jmp 0x410501
mov eax, edx
lea edi, [eax + 1]
lea esp, [esp]
mov cl, byte [eax]
add eax, 1
test cl, cl
jne 0x4104f0
sub eax, edi
mov edi, dword [sym.imp.MSVCR80.dll__invalid_parameter_noinfo]
push eax
push edx
lea ecx, [esp + 0x20]
push ecx
call fcn.00407340
push 1
push 0x42ee8c
lea edx, [esp + 0x20]
push edx
call fcn.00407340
cmp esi, dword [ebx + 4]
jne 0x410525
call edi
mov eax, dword [esi + 0x10]
mov ecx, dword [eax - 0xc]
push ecx
push eax
lea eax, [esp + 0x20]
push eax
call fcn.00407340
mov edx, dword [0x4362a0]
mov eax, dword [edx + 0xc]
add dword [esp + 0x10], 1
mov ecx, 0x4362a0
call eax
add eax, 0x10
mov dword [esp + 0x14], eax
mov byte [esp + 0x88], 0xb
mov edx, dword [0x4362a0]
mov eax, dword [edx + 0xc]
mov ecx, 0x4362a0
call eax
add eax, 0x10
mov dword [esp + 0x30], eax
mov byte [esp + 0x88], 0xc
cmp esi, dword [ebx + 4]
jne 0x410581
call edi
mov eax, dword [esi + 0xc]
push eax
lea ecx, [esp + 0x18]
push ecx
call fcn.00419500
add esp, 8
cmp esi, dword [ebx + 4]
jne 0x410599
call edi
mov esi, dword [esi + 0x10]
lea edx, [esp + 0x30]
push esi
push edx
call fcn.00419500
mov esi, dword [esp + 0x38]
mov ebx, dword [esp + 0x1c]
push esi
push ebx
push str._s___s
push str.bugreport
call fcn.00419910
lea eax, [esi - 0x10]
add esp, 0x18
mov byte [esp + 0x88], 0xb
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x4105e7
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
lea eax, [ebx - 0x10]
mov byte [esp + 0x88], 0xa
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x41060b
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
lea esi, [esp + 0x34]
call fcn.00407780
mov esi, dword [esp + 0x38]
mov ebx, dword [esp + 0x34]
jmp 0x410493
mov edx, dword [0x4362a0]
mov eax, dword [edx + 0xc]
mov ecx, 0x4362a0
call eax
add eax, 0x10
mov dword [esp + 0x14], eax
mov byte [esp + 0x88], 0xd
mov esi, dword [esp + 0x18]
lea ecx, [esp + 0x14]
push esi
push ecx
call fcn.00419500
mov ebx, dword [esp + 0x1c]
push ebx
push str.sending_server_data__s
push str.bugreport
call fcn.00419910
mov eax, dword [esi - 0xc]
mov edx, dword [esp + 0x40]
add esp, 0x14
push eax
push esi
push 0
push 0
push edx
call dword [sym.imp.WININET.dll_HttpSendRequestA]
mov dword [esp + 0x2c], eax
lea eax, [ebx - 0x10]
mov byte [esp + 0x88], 0xa
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x4106a2
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
lea eax, [esi - 0x10]
mov byte [esp + 0x88], 6
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x4106c6
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
lea ecx, [esp + 0x5c]
mov byte [esp + 0x88], 3
call dword [sym.imp.MSVCP80.dll_public:_void___thiscall_std::basic_string_char__struct_std::char_traits_char___class_std::allocator_char__::destructor_void_]
mov byte [esp + 0x88], 0
mov eax, dword [esp + 0x28]
add eax, 0xfffffff0
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x410700
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
mov dword [esp + 0x88], 0xffffffff
mov eax, dword [esp + 0x20]
mov edx, dword [eax]
push eax
lea ecx, [esp + 0x20]
push ecx
mov esi, ecx
push edx
push esi
lea ecx, [esp + 0x44]
push ecx
mov edi, esi
call fcn.00411bc0
mov edx, dword [esp + 0x20]
push edx
call sub.MSVCR80.dll_void___cdecl_operator_delete_void__
mov eax, dword [esp + 0x30]
add esp, 4
mov ecx, dword [esp + 0x80]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov ecx, dword [esp + 0x68]
xor ecx, esp
call fcn.0042575e
mov esp, ebp
pop ebp
ret 8