Function at 0x42cd28
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, 0xfffffba8
push ebx
push esi
push edi
xor ecx, ecx
mov dword [ebp - 0x424], ecx
mov dword [ebp - 4], ecx
mov dword [ebp - 8], ecx
mov dword [ebp - 0xc], ecx
mov esi, edx
mov ebx, eax
xor eax, eax
push ebp
push 0x42d021
push dword fs:[eax]
mov dword fs:[eax], esp
mov byte [ebp - 0xd], 0
mov eax, dword [0x43490c]
mov eax, dword [eax]
call fcn.00406abc
push eax
call sub.wininet.dll_DeleteUrlCacheEntryW
lea eax, [ebp - 8]
push eax
lea ecx, [ebp - 4]
mov edx, dword [0x43490c]
mov edx, dword [edx]
mov eax, ebx
call fcn.0042cb8c
test al, al
je 0x42cff3
mov eax, dword [ebp - 4]
test eax, eax
je 0x42cd97
sub eax, 4
mov eax, dword [eax]
test eax, eax
jg 0x42cd9f
mov al, 1
jmp 0x42cdb0
mov eax, dword [ebp - 8]
test eax, eax
je 0x42cdab
sub eax, 4
mov eax, dword [eax]
test eax, eax
setle al
test al, al
jne 0x42cff3
push 0
push 0
push 0
push 0
push 0
call sub.wininet.dll_InternetOpenW
mov dword [ebp - 0x14], eax
cmp dword [ebp - 0x14], 0
je 0x42cff3
xor edx, edx
push ebp
push 0x42cfec
push dword fs:[edx]
mov dword fs:[edx], esp
push 0
push 0
push 3
push 0
push 0
push 0x50
mov eax, dword [ebp - 4]
call fcn.00406abc
push eax
mov eax, dword [ebp - 0x14]
push eax
call sub.wininet.dll_InternetConnectW
mov dword [ebp - 0x18], eax
cmp dword [ebp - 0x18], 0
je 0x42cfd5
xor edx, edx
push ebp
push 0x42cfce
push dword fs:[edx]
mov dword fs:[edx], esp
push 0
push 0x84080300
push 0
push 0
push 0
mov eax, dword [ebp - 8]
call fcn.00406abc
push eax
mov eax, dword [0x4347d8]
call fcn.00406abc
push eax
mov eax, dword [ebp - 0x18]
push eax
call sub.wininet.dll_HttpOpenRequestW
mov dword [ebp - 0x1c], eax
cmp dword [ebp - 0x1c], 0
je 0x42cfb7
xor edx, edx
push ebp
push 0x42cfb0
push dword fs:[edx]
mov dword fs:[edx], esp
lea eax, [ebp - 0x424]
push eax
mov eax, dword [0x4347cc]
mov dword [ebp - 0x454], eax
mov byte [ebp - 0x450], 0x11
mov eax, dword [0x43a150]
mov dword [ebp - 0x44c], eax
mov byte [ebp - 0x448], 0x11
mov eax, dword [0x43a154]
mov dword [ebp - 0x444], eax
mov byte [ebp - 0x440], 0x11
mov eax, dword [esi + 4]
mov dword [ebp - 0x43c], eax
mov byte [ebp - 0x438], 0x11
mov eax, dword [esi + 8]
mov dword [ebp - 0x434], eax
mov byte [ebp - 0x430], 0x11
mov eax, dword [esi + 0xc]
mov dword [ebp - 0x42c], eax
mov byte [ebp - 0x428], 0
lea edx, [ebp - 0x454]
mov ecx, 5
mov eax, dword [0x4347d4]
call fcn.00417350
mov edx, dword [ebp - 0x424]
lea eax, [ebp - 0xc]
mov ecx, 0
call fcn.004068f8
mov eax, dword [0x4347d0]
mov dword [ebp - 0x458], eax
mov ebx, dword [ebp - 0x458]
test ebx, ebx
je 0x42cf0f
sub ebx, 4
mov ebx, dword [ebx]
lea eax, [ebp - 0xc]
call fcn.00406758
mov edi, eax
mov esi, dword [ebp - 0xc]
test esi, esi
je 0x42cf25
sub esi, 4
mov esi, dword [esi]
push esi
push edi
push ebx
mov eax, dword [0x4347d0]
call fcn.00406abc
push eax
mov eax, dword [ebp - 0x1c]
push eax
call sub.wininet.dll_HttpSendRequestW
test eax, eax
jne 0x42cf54
call fcn.00405a28
call fcn.00405a28
call fcn.00405a28
jmp 0x42cff3
xor eax, eax
mov dword [ebp - 0x20], eax
lea eax, [ebp - 0x420]
xor ecx, ecx
mov edx, 0x400
call fcn.004046d0
lea eax, [ebp - 0x20]
push eax
push 0x400
lea eax, [ebp - 0x420]
push eax
mov eax, dword [ebp - 0x1c]
push eax
call sub.wininet.dll_InternetReadFile
cmp eax, 1
sbb eax, eax
inc eax
mov byte [ebp - 0xd], al
cmp byte [ebp - 0xd], 0
je 0x42cf99
cmp dword [ebp - 0x20], 0
jne 0x42cf54
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x42cfb7
mov eax, dword [ebp - 0x1c]
push eax
call sub.wininet.dll_InternetCloseHandle
ret
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x42cfd5
mov eax, dword [ebp - 0x18]
push eax
call sub.wininet.dll_InternetCloseHandle
ret
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x42cff3
mov eax, dword [ebp - 0x14]
push eax
call sub.wininet.dll_InternetCloseHandle
ret
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x42d028
lea eax, [ebp - 0x424]
call fcn.00406200
lea eax, [ebp - 0xc]
call fcn.00406224
lea eax, [ebp - 8]
mov edx, 2
call fcn.00406260
ret