Function at 0x402da0
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 0x4043a9
push eax
mov eax, 0x489c
mov dword fs:[0], esp
call fcn.00404050
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 0x402e3b
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 0x402f74
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 0x402f7c
mov esi, dword [esp + 0x14]
mov ebp, dword [esp + 0x14]
push ebx
push ebx
push ebx
push 1
push ebx
mov dword [esp + 0xa8], 0x406178
mov dword [esp + 0xac], ebx
call dword [sym.imp.WININET.dll_InternetOpenA]
mov ebx, eax
test ebx, ebx
jne 0x403010
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 0x4033cb
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 0x403020
mov edx, edi
mov ecx, dword [esp + 0x3c]
test ecx, ecx
jne 0x40302a
mov ecx, edi
mov eax, dword [esp + 0x1c]
test eax, eax
jne 0x403034
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 0x4030c2
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 0x4033cb
mov eax, dword [esp + 0x2c]
test eax, eax
jne 0x4030cf
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 0x403177
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 0x4033cb
push edi
push edi
push edi
push edi
push ebp
call dword [sym.imp.WININET.dll_HttpSendRequestA]
cmp eax, edi
jne 0x403239
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 0x4031fa
mov cl, byte [eax - 1]
test cl, cl
je 0x4031f0
cmp cl, 0xff
je 0x4031f0
dec cl
mov byte [eax - 1], cl
jmp 0x4031fa
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 0x403232
mov al, byte [ecx - 1]
test al, al
je 0x403228
cmp al, 0xff
je 0x403228
dec al
mov byte [ecx - 1], al
xor eax, eax
jmp 0x4033cb
dec ecx
push ecx
call sub.MFC42.DLL_operatordelete
add esp, 4
xor eax, eax
jmp 0x4033cb
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 0x4032dd
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 0x403303
mov al, byte [ecx - 1]
test al, al
je 0x4032f9
cmp al, 0xff
je 0x4032f9
dec al
mov byte [ecx - 1], al
jmp 0x403303
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 0x403333
mov al, byte [ecx - 1]
test al, al
je 0x403329
cmp al, 0xff
je 0x403329
dec al
mov byte [ecx - 1], al
jmp 0x403333
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 0x403363
mov al, byte [ecx - 1]
test al, al
je 0x403359
cmp al, 0xff
je 0x403359
dec al
mov byte [ecx - 1], al
jmp 0x403363
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 0x403393
mov al, byte [ecx - 1]
test al, al
je 0x403389
cmp al, 0xff
je 0x403389
dec al
mov byte [ecx - 1], al
jmp 0x403393
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 0x4033c6
mov al, byte [ecx - 1]
test al, al
je 0x4033bc
cmp al, 0xff
je 0x4033bc
dec al
mov byte [ecx - 1], al
jmp 0x4033c6
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