Function at 0x402e10
Capabilities:
Connect to http server
Create http request
Parse url
Read data from internet
Receive data
Send data
Send http request

Disassembly:
push 0xffffffffffffffff
mov eax, dword fs:[0]
push 0x4043c9
push eax
mov eax, 0x489c
mov dword fs:[0], esp
call fcn.00404070
push ebx
push ebp
push esi
push edi
mov ecx, 0xe
xor eax, eax
lea edi, [esp + 0x5c]
mov dword [esp + 0x58], 0x3c
rep stosd dword es:[edi], eax
mov eax, 0x800
xor ebx, ebx
mov dword [esp + 0x6c], eax
mov dword [esp + 0x88], eax
mov dword [esp + 0x78], eax
mov dword [esp + 0x80], eax
lea eax, [esp + 0x9c]
lea ecx, [esp + 0x18a8]
mov dword [esp + 0x68], eax
lea eax, [esp + 0x10a4]
mov dword [esp + 0x7c], eax
mov eax, dword [esp + 0x48c0]
lea edx, [esp + 0x8a0]
cmp eax, ebx
mov dword [esp + 0x48b4], ebx
mov dword [esp + 0x84], ecx
mov dword [esp + 0x74], edx
jne 0x402eab
mov eax, dword [sym.imp.MSVCP60.dll_char_const__private:_static_char_const____cdecl_std::basic_string_char__struct_std::char_traits_char___class_std::allocator_char__::_Nullstr_void_::_2::_C]
lea ecx, [esp + 0x58]
push ecx
push ebx
push ebx
push eax
call dword [sym.imp.WININET.dll_InternetCrackUrlA]
mov edx, dword [esp + 0x68]
mov esi, eax
mov eax, dword [esp + 0x6c]
push ebx
mov byte [edx + eax], 0
mov ecx, dword [esp + 0x88]
mov edx, dword [esp + 0x8c]
mov byte [ecx + edx], 0
mov eax, dword [esp + 0x78]
mov ecx, dword [esp + 0x7c]
mov byte [eax + ecx], 0
mov edx, dword [esp + 0x80]
mov eax, dword [esp + 0x84]
mov cl, byte [esp + 0x17]
mov byte [edx + eax], 0
mov byte [esp + 0x1c], cl
lea ecx, [esp + 0x1c]
call dword [sym.imp.MSVCP60.dll_private:_void___thiscall_std::basic_string_char__struct_std::char_traits_char___class_std::allocator_char__::_Tidy_bool_]
mov dl, byte [esp + 0x13]
push ebx
lea ecx, [esp + 0x2c]
mov byte [esp + 0x48b8], 1
mov byte [esp + 0x2c], dl
call dword [sym.imp.MSVCP60.dll_private:_void___thiscall_std::basic_string_char__struct_std::char_traits_char___class_std::allocator_char__::_Tidy_bool_]
mov al, byte [esp + 0x13]
push ebx
lea ecx, [esp + 0x3c]
mov byte [esp + 0x48b8], 2
mov byte [esp + 0x3c], al
call dword [sym.imp.MSVCP60.dll_private:_void___thiscall_std::basic_string_char__struct_std::char_traits_char___class_std::allocator_char__::_Tidy_bool_]
mov cl, byte [esp + 0x13]
push ebx
mov byte [esp + 0x4c], cl
lea ecx, [esp + 0x4c]
mov byte [esp + 0x48b8], 3
call dword [sym.imp.MSVCP60.dll_private:_void___thiscall_std::basic_string_char__struct_std::char_traits_char___class_std::allocator_char__::_Tidy_bool_]
cmp esi, ebx
mov byte [esp + 0x48b4], 4
je 0x402fe4
mov edx, dword [esp + 0x68]
or ecx, 0xffffffff
mov edi, edx
xor eax, eax
repne scasb al, byte es:[edi]
mov esi, dword [esp + 0x64]
mov ebp, dword [esp + 0x70]
not ecx
dec ecx
push ecx
push edx
lea ecx, [esp + 0x20]
call dword [sym.imp.MSVCP60.dll_public:_class_std::basic_string_char__struct_std::char_traits_char___class_std::allocator_char______thiscall_std::basic_string_char__struct_std::char_traits_char___class_std::allocator_char__::assign_char_const___unsigned_int_]
mov edx, dword [esp + 0x84]
or ecx, 0xffffffff
mov edi, edx
xor eax, eax
repne scasb al, byte es:[edi]
not ecx
dec ecx
push ecx
push edx
lea ecx, [esp + 0x30]
call dword [sym.imp.MSVCP60.dll_public:_class_std::basic_string_char__struct_std::char_traits_char___class_std::allocator_char______thiscall_std::basic_string_char__struct_std::char_traits_char___class_std::allocator_char__::assign_char_const___unsigned_int_]
mov edx, dword [esp + 0x74]
or ecx, 0xffffffff
mov edi, edx
xor eax, eax
repne scasb al, byte es:[edi]
not ecx
dec ecx
push ecx
push edx
lea ecx, [esp + 0x40]
call dword [sym.imp.MSVCP60.dll_public:_class_std::basic_string_char__struct_std::char_traits_char___class_std::allocator_char______thiscall_std::basic_string_char__struct_std::char_traits_char___class_std::allocator_char__::assign_char_const___unsigned_int_]
mov edx, dword [esp + 0x7c]
or ecx, 0xffffffff
mov edi, edx
xor eax, eax
repne scasb al, byte es:[edi]
not ecx
dec ecx
push ecx
push edx
lea ecx, [esp + 0x50]
call dword [sym.imp.MSVCP60.dll_public:_class_std::basic_string_char__struct_std::char_traits_char___class_std::allocator_char______thiscall_std::basic_string_char__struct_std::char_traits_char___class_std::allocator_char__::assign_char_const___unsigned_int_]
jmp 0x402fec
mov esi, dword [esp + 0x14]
mov ebp, dword [esp + 0x14]
push ebx
push ebx
push ebx
push 1
push ebx
mov dword [esp + 0xa8], 0x4071a4
mov dword [esp + 0xac], ebx
call dword [sym.imp.WININET.dll_InternetOpenA]
mov ebx, eax
test ebx, ebx
jne 0x403080
push 1
lea ecx, [esp + 0x4c]
mov byte [esp + 0x48b8], 3
call dword [sym.imp.MSVCP60.dll_private:_void___thiscall_std::basic_string_char__struct_std::char_traits_char___class_std::allocator_char__::_Tidy_bool_]
push 1
lea ecx, [esp + 0x3c]
mov byte [esp + 0x48b8], 2
call dword [sym.imp.MSVCP60.dll_private:_void___thiscall_std::basic_string_char__struct_std::char_traits_char___class_std::allocator_char__::_Tidy_bool_]
push 1
lea ecx, [esp + 0x2c]
mov byte [esp + 0x48b8], 1
call dword [sym.imp.MSVCP60.dll_private:_void___thiscall_std::basic_string_char__struct_std::char_traits_char___class_std::allocator_char__::_Tidy_bool_]
push 1
lea ecx, [esp + 0x1c]
mov byte [esp + 0x48b8], bl
call dword [sym.imp.MSVCP60.dll_private:_void___thiscall_std::basic_string_char__struct_std::char_traits_char___class_std::allocator_char__::_Tidy_bool_]
push 1
lea ecx, [esp + 0x48c0]
mov dword [esp + 0x48b8], 0xffffffff
call dword [sym.imp.MSVCP60.dll_private:_void___thiscall_std::basic_string_char__struct_std::char_traits_char___class_std::allocator_char__::_Tidy_bool_]
xor eax, eax
jmp 0x40343b
mov edx, dword [esp + 0x4c]
mov edi, dword [sym.imp.MSVCP60.dll_char_const__private:_static_char_const____cdecl_std::basic_string_char__struct_std::char_traits_char___class_std::allocator_char__::_Nullstr_void_::_2::_C]
test edx, edx
jne 0x403090
mov edx, edi
mov ecx, dword [esp + 0x3c]
test ecx, ecx
jne 0x40309a
mov ecx, edi
mov eax, dword [esp + 0x1c]
test eax, eax
jne 0x4030a4
mov eax, edi
push 1
push 0
push esi
push edx
push ecx
push ebp
push eax
push ebx
call dword [sym.imp.WININET.dll_InternetConnectA]
mov esi, eax
test esi, esi
jne 0x403132
push ebx
call dword [sym.imp.WININET.dll_InternetCloseHandle]
push 1
lea ecx, [esp + 0x4c]
mov byte [esp + 0x48b8], 3
call dword [sym.imp.MSVCP60.dll_private:_void___thiscall_std::basic_string_char__struct_std::char_traits_char___class_std::allocator_char__::_Tidy_bool_]
push 1
lea ecx, [esp + 0x3c]
mov byte [esp + 0x48b8], 2
call dword [sym.imp.MSVCP60.dll_private:_void___thiscall_std::basic_string_char__struct_std::char_traits_char___class_std::allocator_char__::_Tidy_bool_]
push 1
lea ecx, [esp + 0x2c]
mov byte [esp + 0x48b8], 1
call dword [sym.imp.MSVCP60.dll_private:_void___thiscall_std::basic_string_char__struct_std::char_traits_char___class_std::allocator_char__::_Tidy_bool_]
push 1
lea ecx, [esp + 0x1c]
mov byte [esp + 0x48b8], 0
call dword [sym.imp.MSVCP60.dll_private:_void___thiscall_std::basic_string_char__struct_std::char_traits_char___class_std::allocator_char__::_Tidy_bool_]
push 1
lea ecx, [esp + 0x48c0]
mov dword [esp + 0x48b8], 0xffffffff
call dword [sym.imp.MSVCP60.dll_private:_void___thiscall_std::basic_string_char__struct_std::char_traits_char___class_std::allocator_char__::_Tidy_bool_]
xor eax, eax
jmp 0x40343b
mov eax, dword [esp + 0x2c]
test eax, eax
jne 0x40313f
mov eax, dword [sym.imp.MSVCP60.dll_char_const__private:_static_char_const____cdecl_std::basic_string_char__struct_std::char_traits_char___class_std::allocator_char__::_Nullstr_void_::_2::_C]
push 1
lea edx, [esp + 0x98]
push 0x84480000
push edx
push 0
push str.HTTP_1.1
push eax
push str.POST
push esi
call dword [sym.imp.WININET.dll_HttpOpenRequestA]
mov ebp, eax
xor edi, edi
cmp ebp, edi
jne 0x4031e7
push esi
mov esi, dword [sym.imp.WININET.dll_InternetCloseHandle]
call esi
push ebx
call esi
push 1
lea ecx, [esp + 0x4c]
mov byte [esp + 0x48b8], 3
call dword [sym.imp.MSVCP60.dll_private:_void___thiscall_std::basic_string_char__struct_std::char_traits_char___class_std::allocator_char__::_Tidy_bool_]
push 1
lea ecx, [esp + 0x3c]
mov byte [esp + 0x48b8], 2
call dword [sym.imp.MSVCP60.dll_private:_void___thiscall_std::basic_string_char__struct_std::char_traits_char___class_std::allocator_char__::_Tidy_bool_]
push 1
lea ecx, [esp + 0x2c]
mov byte [esp + 0x48b8], 1
call dword [sym.imp.MSVCP60.dll_private:_void___thiscall_std::basic_string_char__struct_std::char_traits_char___class_std::allocator_char__::_Tidy_bool_]
push 1
lea ecx, [esp + 0x1c]
mov byte [esp + 0x48b8], 0
call dword [sym.imp.MSVCP60.dll_private:_void___thiscall_std::basic_string_char__struct_std::char_traits_char___class_std::allocator_char__::_Tidy_bool_]
push 1
lea ecx, [esp + 0x48c0]
mov dword [esp + 0x48b8], 0xffffffff
call dword [sym.imp.MSVCP60.dll_private:_void___thiscall_std::basic_string_char__struct_std::char_traits_char___class_std::allocator_char__::_Tidy_bool_]
xor eax, eax
jmp 0x40343b
push edi
push edi
push edi
push edi
push ebp
call dword [sym.imp.WININET.dll_HttpSendRequestA]
cmp eax, edi
jne 0x4032a9
push ebp
mov ebp, dword [sym.imp.WININET.dll_InternetCloseHandle]
call ebp
push esi
call ebp
push ebx
call ebp
push 1
lea ecx, [esp + 0x4c]
mov byte [esp + 0x48b8], 3
call dword [sym.imp.MSVCP60.dll_private:_void___thiscall_std::basic_string_char__struct_std::char_traits_char___class_std::allocator_char__::_Tidy_bool_]
push 1
lea ecx, [esp + 0x3c]
mov byte [esp + 0x48b8], 2
call dword [sym.imp.MSVCP60.dll_private:_void___thiscall_std::basic_string_char__struct_std::char_traits_char___class_std::allocator_char__::_Tidy_bool_]
push 1
lea ecx, [esp + 0x2c]
mov byte [esp + 0x48b8], 1
call dword [sym.imp.MSVCP60.dll_private:_void___thiscall_std::basic_string_char__struct_std::char_traits_char___class_std::allocator_char__::_Tidy_bool_]
mov eax, dword [esp + 0x1c]
cmp eax, edi
je 0x40326a
mov cl, byte [eax - 1]
test cl, cl
je 0x403260
cmp cl, 0xff
je 0x403260
dec cl
mov byte [eax - 1], cl
jmp 0x40326a
dec eax
push eax
call sub.MFC42.DLL_operatordelete
add esp, 4
mov ecx, dword [esp + 0x48c0]
mov dword [esp + 0x1c], edi
cmp ecx, edi
mov dword [esp + 0x20], edi
mov dword [esp + 0x24], edi
je 0x4032a2
mov al, byte [ecx - 1]
test al, al
je 0x403298
cmp al, 0xff
je 0x403298
dec al
mov byte [ecx - 1], al
xor eax, eax
jmp 0x40343b
dec ecx
push ecx
call sub.MFC42.DLL_operatordelete
add esp, 4
xor eax, eax
jmp 0x40343b
mov ecx, 0x9ff
xor eax, eax
lea edi, [esp + 0x20ad]
mov byte [esp + 0x20ac], 0
rep stosd dword es:[edi], eax
stosw word es:[edi], ax
stosb byte es:[edi], al
mov ecx, 0xa00
xor eax, eax
lea edi, [esp + 0x20ac]
mov dword [esp + 0x14], eax
rep stosd dword es:[edi], eax
lea eax, [esp + 0x14]
lea ecx, [esp + 0x20ac]
push eax
push 0x2800
push ecx
push ebp
call dword [sym.imp.WININET.dll_InternetReadFile]
mov edi, dword [sym.imp.WININET.dll_InternetCloseHandle]
push ebp
call edi
push esi
call edi
push ebx
call edi
lea edi, [esp + 0x20ac]
or ecx, 0xffffffff
xor eax, eax
mov ebp, dword [esp + 0x48cc]
repne scasb al, byte es:[edi]
not ecx
dec ecx
push 1
mov ebx, ecx
mov ecx, ebp
push ebx
call dword [sym.imp.MSVCP60.dll_private:_bool___thiscall_std::basic_string_char__struct_std::char_traits_char___class_std::allocator_char__::_Grow_unsigned_int__bool_]
test al, al
je 0x40334d
mov edi, dword [ebp + 4]
mov ecx, ebx
mov edx, ecx
lea esi, [esp + 0x20ac]
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, edx
and ecx, 3
rep movsb byte es:[edi], byte [esi]
mov eax, dword [ebp + 4]
mov dword [ebp + 8], ebx
mov byte [ebx + eax], 0
mov ecx, dword [esp + 0x4c]
xor esi, esi
cmp ecx, esi
je 0x403373
mov al, byte [ecx - 1]
test al, al
je 0x403369
cmp al, 0xff
je 0x403369
dec al
mov byte [ecx - 1], al
jmp 0x403373
dec ecx
push ecx
call sub.MFC42.DLL_operatordelete
add esp, 4
mov ecx, dword [esp + 0x3c]
mov dword [esp + 0x4c], esi
cmp ecx, esi
mov dword [esp + 0x50], esi
mov dword [esp + 0x54], esi
je 0x4033a3
mov al, byte [ecx - 1]
test al, al
je 0x403399
cmp al, 0xff
je 0x403399
dec al
mov byte [ecx - 1], al
jmp 0x4033a3
dec ecx
push ecx
call sub.MFC42.DLL_operatordelete
add esp, 4
mov ecx, dword [esp + 0x2c]
mov dword [esp + 0x3c], esi
cmp ecx, esi
mov dword [esp + 0x40], esi
mov dword [esp + 0x44], esi
je 0x4033d3
mov al, byte [ecx - 1]
test al, al
je 0x4033c9
cmp al, 0xff
je 0x4033c9
dec al
mov byte [ecx - 1], al
jmp 0x4033d3
dec ecx
push ecx
call sub.MFC42.DLL_operatordelete
add esp, 4
mov ecx, dword [esp + 0x1c]
mov dword [esp + 0x2c], esi
cmp ecx, esi
mov dword [esp + 0x30], esi
mov dword [esp + 0x34], esi
je 0x403403
mov al, byte [ecx - 1]
test al, al
je 0x4033f9
cmp al, 0xff
je 0x4033f9
dec al
mov byte [ecx - 1], al
jmp 0x403403
dec ecx
push ecx
call sub.MFC42.DLL_operatordelete
add esp, 4
mov ecx, dword [esp + 0x48c0]
mov dword [esp + 0x1c], esi
cmp ecx, esi
mov dword [esp + 0x20], esi
mov dword [esp + 0x24], esi
je 0x403436
mov al, byte [ecx - 1]
test al, al
je 0x40342c
cmp al, 0xff
je 0x40342c
dec al
mov byte [ecx - 1], al
jmp 0x403436
dec ecx
push ecx
call sub.MFC42.DLL_operatordelete
add esp, 4
mov eax, 1
mov ecx, dword [esp + 0x48ac]
pop edi
pop esi
pop ebp
pop ebx
mov dword fs:[0], ecx
add esp, 0x48a8
ret 0x14