Function at 0x411d70
Capabilities:
Check os version

Disassembly:
push 0xffffffffffffffff
push 0x418080
mov eax, dword fs:[0]
push eax
sub esp, 0x4a0
mov eax, dword [0x42202c]
xor eax, esp
mov dword [esp + 0x49c], eax
push ebx
push ebp
push esi
push edi
mov eax, dword [0x42202c]
xor eax, esp
push eax
lea eax, [esp + 0x4b4]
mov dword fs:[0], eax
mov ebp, dword [esp + 0x4c4]
push 0x3ff
lea eax, [esp + 0xb5]
push 0
push eax
mov esi, ecx
mov dword [esp + 0x30], ebp
mov byte [esp + 0xbc], 0
call sub.MSVCR80.dll_memset
add esp, 0xc
mov byte [esp + 0x17], 0
xor edi, edi
call dword [sym.imp.KERNEL32.dll_GetTickCount]
mov bl, 0xa
cmp edi, 0x400
jge 0x411e4c
cmp dword [esi + 8], 0xffffffff
je 0x411f72
lea ecx, [esp + 0x1c]
push ecx
push 1
lea edx, [esp + 0x1f]
push edx
mov eax, esi
call fcn.00411900
test eax, eax
jne 0x412250
mov al, byte [esp + 0x17]
mov byte [esp + edi + 0xb0], al
add edi, 1
cmp edi, 4
jl 0x411de6
cmp byte [esp + edi + 0xac], 0xd
jne 0x411de6
cmp byte [esp + edi + 0xad], bl
jne 0x411de6
cmp byte [esp + edi + 0xae], 0xd
jne 0x411de6
cmp byte [esp + edi + 0xaf], bl
jne 0x411de6
mov cl, byte [esp + 0xb9]
mov dl, byte [esp + 0xba]
mov al, byte [esp + 0xbb]
mov byte [esp + 0x18], cl
mov byte [esp + 0x19], dl
mov byte [esp + 0x1a], al
mov byte [esp + 0x1b], 0
call fcn.0040aad0
cmp byte [eax + 0x39], 0
je 0x411eaa
call fcn.0040aad0
call fcn.0040a090
test al, al
je 0x411eaa
lea ecx, [esp + 0xb0]
push ecx
push str.GetResponseLength__response__content_n_s
mov ecx, 0xe
mov edx, str..HttpSocket.cpp
call fcn.0040a820
add esp, 8
mov edi, dword [sym.imp.MSVCR80.dll_atoi]
lea edx, [esp + 0x18]
push edx
call edi
add esp, 4
cmp eax, 0xc8
je 0x412006
call fcn.0040aad0
cmp byte [eax + 0x39], 0
je 0x411ef9
call fcn.0040aad0
call fcn.0040a090
test al, al
je 0x411ef9
mov eax, dword [esi + 0x10]
push eax
push str.GetResponseLength__response__code_200__m_iRedirectTime_d
mov ecx, 0xe
mov edx, str..HttpSocket.cpp
call fcn.0040a820
add esp, 8
mov dword [ebp], 0
call fcn.00411b50
lea ecx, [esp + 0x18]
push ecx
mov byte [esp + 0x1d], 0
call edi
add esp, 4
cmp eax, 3
jne 0x41224b
mov eax, dword [esi + 0x10]
cmp eax, 5
jge 0x41224b
add eax, 1
lea edx, [esp + 0xb0]
mov dword [esi + 0x10], eax
push edx
lea eax, [esp + 0x98]
push eax
mov edi, str.Location
call fcn.00411be0
add esp, 8
mov dword [esp + 0x4bc], 0
mov dword [ebp], 0xffffffff
call fcn.0040aaa0
test al, al
je 0x411fcf
cmp dword [esi + 0x2c], 8
jb 0x411faf
mov eax, dword [esi + 0x18]
jmp 0x411fb2
call fcn.0040aad0
cmp byte [eax + 0x39], 0
je 0x41224b
call fcn.0040aad0
call fcn.0040a090
test al, al
je 0x41224b
push str.GetResponseLength__recv_INVALID_SOCKET
mov ecx, 0xe
mov edx, str..HttpSocket.cpp
call fcn.0040a820
add esp, 4
jmp 0x41224b
lea eax, [esi + 0x18]
mov ecx, dword [esi + 0xc]
mov edx, dword [esi + 8]
push eax
push ecx
push edx
push str.GetResponseLength__redirection__m_socket0x_x__m_iTime_d__m_wstrFilePath_s
push 0xe
push str..HttpSocket.cpp
call fcn.0040a920
add esp, 0x18
mov ecx, dword [esi + 0xc]
lea eax, [esi + 0x14]
push eax
push ecx
lea edx, [esp + 0x9c]
mov ecx, esi
call fcn.00410a10
lea ecx, [esp + 0x94]
mov esi, eax
mov dword [esp + 0x4bc], 0xffffffff
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 eax, esi
jmp 0x412250
lea edx, [esp + 0xb0]
push edx
lea eax, [esp + 0x44]
push eax
mov edi, str.Content_Encoding
call fcn.00411be0
add esp, 8
mov dword [esp + 0x4bc], 1
cmp dword [esp + 0x54], 0
je 0x412109
lea ecx, [esp + 0x38]
push ecx
lea ecx, [esp + 0x44]
call dword [sym.imp.MSVCP80.dll_public:_class_std::_String_iterator_char__struct_std::char_traits_char___class_std::allocator_char_____thiscall_std::basic_string_char__struct_std::char_traits_char___class_std::allocator_char__::begin_void_]
mov ebp, dword [eax]
mov edi, dword [eax + 4]
lea edx, [esp + 0x28]
push edx
lea ecx, [esp + 0x44]
call dword [sym.imp.MSVCP80.dll_public:_class_std::_String_iterator_char__struct_std::char_traits_char___class_std::allocator_char_____thiscall_std::basic_string_char__struct_std::char_traits_char___class_std::allocator_char__::end_void_]
mov ecx, dword [eax]
mov ebx, dword [eax + 4]
lea edx, [esp + 0x30]
mov dword [esp + 0x1c], ecx
push edx
lea ecx, [esp + 0x44]
call dword [sym.imp.MSVCP80.dll_public:_class_std::_String_iterator_char__struct_std::char_traits_char___class_std::allocator_char_____thiscall_std::basic_string_char__struct_std::char_traits_char___class_std::allocator_char__::begin_void_]
mov ecx, dword [eax]
mov eax, dword [eax + 4]
mov dword [esp + 0x1c], ecx
mov byte [esp + 0x1c], 0
mov edx, dword [esp + 0x1c]
mov ecx, dword [esp + 0x1c]
push edx
mov edx, dword [sym.imp.MSVCR80.dll_tolower]
push ecx
push edx
push edi
lea ecx, [esp + 0x2c]
push ebp
push ecx
mov edi, ebx
call fcn.004122d0
add esp, 0x18
push 0
push str.gzip
lea ecx, [esp + 0x48]
call dword [sym.imp.MSVCP80.dll_public:_unsigned_int___thiscall_std::basic_string_char__struct_std::char_traits_char___class_std::allocator_char__::find_char_const___unsigned_int_const]
mov edx, dword [sym.imp.MSVCP80.dll_unsigned_int_const_std::basic_string_char__struct_std::char_traits_char___class_std::allocator_char__::npos]
cmp eax, dword [edx]
je 0x4120c0
mov byte [esi + 0x30], 1
call fcn.0040aad0
cmp byte [eax + 0x39], 0
je 0x412105
call fcn.0040aad0
call fcn.0040a090
test al, al
je 0x412105
cmp dword [esp + 0x58], 0x10
mov eax, dword [esp + 0x44]
jae 0x4120e8
lea eax, [esp + 0x44]
movzx ecx, byte [esi + 0x30]
push ecx
push eax
push str.strEncodingValue_s_m_bIsGZipType_d
mov ecx, 0xe
mov edx, str..HttpSocket.cpp
call fcn.0040a820
add esp, 0xc
mov ebp, dword [esp + 0x24]
lea edx, [esp + 0xb0]
push edx
lea eax, [esp + 0x7c]
push eax
mov edi, str.Transfer_Encoding
call fcn.00411be0
add esp, 8
mov bl, 2
mov byte [esp + 0x4bc], bl
cmp dword [esp + 0x8c], 0
je 0x4121a6
push 0
push str.chunked
lea ecx, [esp + 0x80]
call dword [sym.imp.MSVCP80.dll_public:_unsigned_int___thiscall_std::basic_string_char__struct_std::char_traits_char___class_std::allocator_char__::find_char_const___unsigned_int_const]
mov ecx, dword [sym.imp.MSVCP80.dll_unsigned_int_const_std::basic_string_char__struct_std::char_traits_char___class_std::allocator_char__::npos]
cmp eax, dword [ecx]
je 0x4121a6
mov byte [esi + 0x31], 1
call fcn.0040aaa0
test al, al
je 0x412178
push str.GetResponseLength___m_bIsChunkedtrue_return
mov ecx, 0xe
mov edx, str..HttpSocket.cpp
call fcn.0040a820
add esp, 4
lea ecx, [esp + 0x78]
mov byte [esp + 0x4bc], 1
call dword [sym.imp.MSVCP80.dll_public:_void___thiscall_std::basic_string_char__struct_std::char_traits_char___class_std::allocator_char__::destructor_void_]
lea ecx, [esp + 0x40]
mov dword [esp + 0x4bc], 0xffffffff
call dword [sym.imp.MSVCP80.dll_public:_void___thiscall_std::basic_string_char__struct_std::char_traits_char___class_std::allocator_char__::destructor_void_]
xor eax, eax
jmp 0x412250
lea edx, [esp + 0xb0]
push edx
lea eax, [esp + 0x60]
push eax
mov edi, str.Content_Length
call fcn.00411be0
add esp, 8
mov byte [esp + 0x4bc], 3
mov eax, dword [esp + 0x70]
test eax, eax
je 0x412207
cmp eax, 0xb
jae 0x412207
cmp dword [esp + 0x74], 0x10
mov eax, dword [esp + 0x60]
jae 0x4121e4
lea eax, [esp + 0x60]
push eax
call dword [sym.imp.MSVCR80.dll_atoi]
add esp, 4
lea ecx, [esp + 0x5c]
mov dword [ebp], eax
mov byte [esp + 0x4bc], bl
call dword [sym.imp.MSVCP80.dll_public:_void___thiscall_std::basic_string_char__struct_std::char_traits_char___class_std::allocator_char__::destructor_void_]
jmp 0x412178
mov dword [ebp], 0
call fcn.00411b50
lea ecx, [esp + 0x5c]
mov byte [esp + 0x4bc], bl
call dword [sym.imp.MSVCP80.dll_public:_void___thiscall_std::basic_string_char__struct_std::char_traits_char___class_std::allocator_char__::destructor_void_]
lea ecx, [esp + 0x78]
mov byte [esp + 0x4bc], 1
call dword [sym.imp.MSVCP80.dll_public:_void___thiscall_std::basic_string_char__struct_std::char_traits_char___class_std::allocator_char__::destructor_void_]
lea ecx, [esp + 0x40]
mov dword [esp + 0x4bc], 0xffffffff
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 eax, 1
mov ecx, dword [esp + 0x4b4]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebp
pop ebx
mov ecx, dword [esp + 0x49c]
xor ecx, esp
call fcn.004158da
add esp, 0x4ac
ret 4