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

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffffb90
push ebx
push esi
push edi
xor ecx, ecx
mov dword [ebp - 0x470], ecx
mov dword [ebp - 0x46c], ecx
mov dword [ebp - 0x464], ecx
mov dword [ebp - 0x468], ecx
mov dword [ebp - 4], ecx
mov dword [ebp - 8], ecx
mov dword [ebp - 0xc], edx
mov ebx, eax
xor eax, eax
push ebp
push 0x642d16
push dword fs:[eax]
mov dword fs:[eax], esp
mov eax, dword [ebp - 0xc]
call fcn.0040b458
mov eax, 0x642d30
call fcn.00641db8
test al, al
je 0x642a90
mov edx, dword [ebp - 0xc]
mov eax, ebx
call fcn.006428a8
jmp 0x642ce9
push 0
push 0
push 0
push 0
lea edx, [ebp - 0x468]
mov eax, dword [0x682278]
mov eax, dword [eax]
call fcn.006112f8
mov eax, dword [ebp - 0x468]
lea edx, [ebp - 0x464]
call fcn.00429368
mov eax, dword [ebp - 0x464]
call fcn.0040bff0
push eax
call sub.wininet.dll_InternetOpenW
mov dword [ebp - 0x10], eax
cmp dword [ebp - 0x10], 0
je 0x642ce9
push 0
push 0
push 3
push 0
push 0
push 0x50
lea ecx, [ebp - 0x46c]
mov edx, ebx
mov al, 1
call fcn.00642610
mov eax, dword [ebp - 0x46c]
call fcn.0040bff0
push eax
mov eax, dword [ebp - 0x10]
push eax
call sub.wininet.dll_InternetConnectW
mov dword [ebp - 0x14], eax
cmp dword [ebp - 0x14], 0
jne 0x642b20
mov eax, dword [ebp - 0x10]
push eax
call sub.wininet.dll_InternetCloseHandle
jmp 0x642ce9
push 0
push 0x84000100
push 0
push 0
push 0
lea ecx, [ebp - 0x470]
mov edx, ebx
xor eax, eax
call fcn.00642610
mov eax, dword [ebp - 0x470]
call fcn.0040bff0
push eax
push 0
mov eax, dword [ebp - 0x14]
push eax
call sub.wininet.dll_HttpOpenRequestW
mov dword [ebp - 0x18], eax
cmp dword [ebp - 0x18], 0
jne 0x642b73
mov eax, dword [ebp - 0x14]
push eax
call sub.wininet.dll_InternetCloseHandle
mov eax, dword [ebp - 0x10]
push eax
call sub.wininet.dll_InternetCloseHandle
jmp 0x642ce9
push 0
push 0
push 0
push 0
mov eax, dword [ebp - 0x18]
push eax
call sub.wininet.dll_HttpSendRequestW
test eax, eax
jne 0x642ba8
mov eax, dword [ebp - 0x18]
push eax
call sub.wininet.dll_InternetCloseHandle
mov eax, dword [ebp - 0x14]
push eax
call sub.wininet.dll_InternetCloseHandle
mov eax, dword [ebp - 0x10]
push eax
call sub.wininet.dll_InternetCloseHandle
jmp 0x642ce9
lea eax, [ebp - 8]
call fcn.0040b458
xor eax, eax
mov dword [ebp - 0x20], eax
mov dword [ebp - 0x1c], 0x3e
xor eax, eax
push ebp
push 0x642bfc
push dword fs:[eax]
mov dword fs:[eax], esp
lea eax, [ebp - 0x20]
push eax
lea eax, [ebp - 0x1c]
push eax
lea eax, [ebp - 0x45e]
push eax
push 0x13
mov eax, dword [ebp - 0x18]
push eax
call sub.wininet.dll_HttpQueryInfoW
lea eax, [ebp - 8]
lea edx, [ebp - 0x45e]
call fcn.0040c050
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
jmp 0x642c06
mov eax, dword [ebp - 8]
mov edx, 0x642d5c
call fcn.0040c38c
je 0x642c51
mov eax, dword [ebp - 8]
mov edx, 0x642d70
call fcn.0040c38c
je 0x642c51
mov eax, dword [ebp - 8]
mov edx, 0x642d84
call fcn.0040c38c
je 0x642c51
mov eax, dword [ebp - 8]
mov edx, 0x642d98
call fcn.0040c38c
je 0x642c51
mov eax, dword [ebp - 8]
mov edx, 0x642dac
call fcn.0040c38c
jne 0x642c6e
mov eax, dword [ebp - 0x18]
push eax
call sub.wininet.dll_InternetCloseHandle
mov eax, dword [ebp - 0x14]
push eax
call sub.wininet.dll_InternetCloseHandle
mov eax, dword [ebp - 0x10]
push eax
call sub.wininet.dll_InternetCloseHandle
jmp 0x642ce9
xor eax, eax
push ebp
push 0x642cc4
push dword fs:[eax]
mov dword fs:[eax], esp
lea eax, [ebp - 0x1c]
push eax
push 0x400
lea eax, [ebp - 0x420]
push eax
mov eax, dword [ebp - 0x18]
push eax
call sub.wininet.dll_InternetReadFile
lea edx, [ebp - 0x420]
lea eax, [ebp - 4]
mov ecx, dword [ebp - 0x1c]
call fcn.0040b710
mov eax, dword [ebp - 0xc]
mov edx, dword [ebp - 4]
call fcn.0040c1fc
mov eax, dword [ebp - 0xc]
cmp dword [ebp - 0x1c], 0
jne 0x642c7c
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
jmp 0x642cce
mov eax, dword [ebp - 0x18]
push eax
call sub.wininet.dll_InternetCloseHandle
mov eax, dword [ebp - 0x14]
push eax
call sub.wininet.dll_InternetCloseHandle
mov eax, dword [ebp - 0x10]
push eax
call sub.wininet.dll_InternetCloseHandle
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x642d1d
lea eax, [ebp - 0x470]
mov edx, 4
call fcn.0040b4b8
lea eax, [ebp - 8]
mov edx, 2
call fcn.0040b4b8
pop eax
jmp eax