Function at 0x424834
Capabilities:
Connect to http server
Create http request
Read data from internet
Receive data
Resolve function by parsing pe exports
Send data
Send http request

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
push 0xffffffffffffffff
push 0x487723
mov eax, dword fs:[0]
push eax
sub esp, 0x4a8
mov eax, dword [0x4bb760]
xor eax, esp
mov dword [esp + 0x4a0], eax
push ebx
push esi
push edi
mov eax, dword [0x4bb760]
xor eax, esp
push eax
lea eax, [esp + 0x4b8]
mov dword fs:[0], eax
mov eax, dword [ebp + 8]
xor ecx, ecx
mov esi, dword [ebp + 0xc]
mov edi, dword [ebp + 0x18]
mov dword [esp + 0x20], eax
mov eax, dword [ebp + 0x10]
push 0xf
mov dword [esp + 0x14], eax
pop eax
mov dword [esp + 0x24], ecx
mov dword [esp + 0xa8], eax
mov dword [esp + 0xa4], ecx
mov byte [esp + 0x94], cl
mov dword [esp + 0x4c0], ecx
mov dword [esp + 0x3c], eax
mov dword [esp + 0x38], ecx
mov byte [esp + 0x28], cl
push ecx
push ecx
mov byte [esp + 0x4c8], 1
mov eax, 0x4c2c2c
cmp dword [0x4c2c40], 8
mov bl, cl
push ecx
cmovae eax, dword [0x4c2c2c]
push ecx
push eax
call dword [sym.imp.WININET.dll_InternetOpenW]
mov dword [esp + 0x18], eax
test eax, eax
je 0x424bb2
cmp dword [esi + 0x14], 8
jb 0x4248f5
mov esi, dword [esi]
xor ecx, ecx
push ecx
push ecx
push 3
push ecx
push ecx
push 0x50
push esi
push eax
call dword [sym.imp.WININET.dll_InternetConnectW]
mov dword [esp + 0x14], eax
test eax, eax
je 0x424b8d
cmp dword [edi + 0x14], 8
jb 0x42491b
mov edi, dword [edi]
push 1
push 0x4000000
push 0x4bcb64
push 0
push 0
push edi
push str.POST
push eax
call dword [sym.imp.WININET.dll_HttpOpenRequestW]
mov esi, eax
mov dword [esp + 0x1c], esi
test esi, esi
je 0x424b68
push dword [ebp + 0x14]
cmp dword [0x4c2bf4], 8
mov eax, 0x4c2be0
push dword [esp + 0x14]
cmovae eax, dword [0x4c2be0]
push dword [0x4c2bf0]
push eax
push esi
call dword [sym.imp.WININET.dll_HttpSendRequestW]
test eax, eax
je 0x424ae2
lea eax, [esp + 0x10]
push eax
push 0x400
lea eax, [esp + 0xb4]
push eax
push esi
call dword [sym.imp.WININET.dll_InternetReadFile]
mov edi, dword [sym.imp.KERNEL32.dll_GetLastError]
test eax, eax
je 0x4249ba
push dword [esp + 0x10]
lea eax, [esp + 0xb0]
push eax
lea ecx, [esp + 0x9c]
call fcn.0041af52
cmp dword [esp + 0x10], 0
jne 0x424976
jmp 0x424a33
call edi
mov edx, eax
lea ecx, [esp + 0x70]
call fcn.00423716
push eax
mov edx, str.Get_request_data_error:
mov byte [esp + 0x4c4], 2
lea ecx, [esp + 0x5c]
call fcn.0041b614
mov byte [esp + 0x4c4], 3
lea ecx, [esp + 0x44]
mov edx, eax
mov dword [esp], 0x4a3bc0
call fcn.0041b5ba
pop ecx
push eax
lea ecx, [esp + 0x2c]
call fcn.0040e39c
xor ebx, ebx
lea ecx, [esp + 0x40]
push ebx
push 1
call fcn.0040d225
push ebx
push 1
lea ecx, [esp + 0x60]
call fcn.0040d225
push ebx
push 1
lea ecx, [esp + 0x78]
mov byte [esp + 0x4c8], 1
call fcn.0040d225
mov bl, 1
lea eax, [esp + 0x1c]
push eax
call fcn.004237e7
cmp eax, 0xffffffff
je 0x424ab4
cmp eax, 0x190
jl 0x424b5f
mov edx, eax
lea ecx, [esp + 0x40]
call fcn.0040e9a5
push eax
mov edx, str.Server_internal_error:
mov byte [esp + 0x4c4], 6
lea ecx, [esp + 0x5c]
call fcn.0041b614
mov byte [esp + 0x4c4], 7
lea ecx, [esp + 0x74]
mov edx, eax
mov dword [esp], 0x4a3bc0
call fcn.0041b5ba
pop ecx
push eax
lea ecx, [esp + 0x2c]
call fcn.0040e39c
xor edi, edi
lea ecx, [esp + 0x70]
push edi
push 1
call fcn.0040d225
push edi
push 1
lea ecx, [esp + 0x60]
call fcn.0040d225
push edi
jmp 0x424b4a
call edi
mov edx, eax
lea ecx, [esp + 0x40]
call fcn.00423716
push eax
mov edx, str.Unable_to_get_HTTP_status:
mov byte [esp + 0x4c4], 4
lea ecx, [esp + 0x5c]
call fcn.0041b614
mov byte [esp + 0x4c4], 5
jmp 0x424b12
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov edx, eax
lea ecx, [esp + 0x40]
call fcn.00423716
push eax
mov edx, str.Send_request_failed_with_error:
mov byte [esp + 0x4c4], 8
lea ecx, [esp + 0x5c]
call fcn.0041b614
mov byte [esp + 0x4c4], 9
mov edx, eax
mov dword [esp], 0x4a3bc0
lea ecx, [esp + 0x74]
call fcn.0041b5ba
pop ecx
push eax
lea ecx, [esp + 0x2c]
call fcn.0040e39c
xor ebx, ebx
lea ecx, [esp + 0x70]
push ebx
push 1
call fcn.0040d225
push ebx
push 1
lea ecx, [esp + 0x60]
call fcn.0040d225
push ebx
push 1
lea ecx, [esp + 0x48]
mov byte [esp + 0x4c8], 1
call fcn.0040d225
mov bl, 1
push esi
call dword [sym.imp.WININET.dll_InternetCloseHandle]
jmp 0x424b81
mov esi, str.Request_cannot_be_completed.
push esi
call fcn.0040c357
pop ecx
push eax
push esi
lea ecx, [esp + 0x30]
call fcn.0040d3f4
mov bl, 1
push dword [esp + 0x14]
call dword [sym.imp.WININET.dll_InternetCloseHandle]
jmp 0x424ba6
mov esi, str.Error_connecting_to_server.
push esi
call fcn.0040c357
pop ecx
push eax
push esi
lea ecx, [esp + 0x30]
call fcn.0040d3f4
mov bl, 1
push dword [esp + 0x18]
call dword [sym.imp.WININET.dll_InternetCloseHandle]
jmp 0x424bcb
mov esi, str.Error_initializing_WinInet_library.
push esi
call fcn.0040c357
pop ecx
push eax
push esi
lea ecx, [esp + 0x30]
call fcn.0040d3f4
mov bl, 1
test bl, bl
je 0x424bec
lea eax, [esp + 0x28]
push eax
lea ecx, [esp + 0x74]
call fcn.0042375d
push 0x4b7e18
lea eax, [esp + 0x74]
push eax
call fcn.0046a929
mov ecx, dword [esp + 0x20]
lea edx, [esp + 0x94]
call fcn.0042bb87
push 0
push 1
lea ecx, [esp + 0x30]
call fcn.0040d225
push 0
push 1
lea ecx, [esp + 0x9c]
call fcn.0040d225
mov eax, dword [esp + 0x20]
mov ecx, dword [esp + 0x4b8]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov ecx, dword [esp + 0x4a0]
xor ecx, esp
call fcn.00465956
mov esp, ebp
pop ebp
ret 0x14