Function at 0x43846c
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, 0xfffffbc0
push ebx
push esi
push edi
xor ecx, ecx
mov dword [ebp - 0x42c], ecx
mov dword [ebp - 0x430], ecx
mov dword [ebp - 0x434], ecx
mov dword [ebp - 0x438], ecx
mov dword [ebp - 0x43c], ecx
mov dword [ebp - 0x428], 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 0x4387b1
push dword fs:[eax]
mov dword fs:[eax], esp
mov byte [ebp - 0xd], 0
lea eax, [ebp - 0x424]
call fcn.00413fd4
mov eax, dword [ebp - 0x424]
call fcn.004073e4
push eax
call sub.wininet.dll_DeleteUrlCacheEntryW
lea eax, [ebp - 8]
push eax
lea eax, [ebp - 0x428]
call fcn.00413fd4
mov edx, dword [ebp - 0x428]
lea ecx, [ebp - 4]
mov eax, ebx
call fcn.004382e0
test al, al
je 0x43877e
mov eax, dword [ebp - 4]
test eax, eax
je 0x438512
sub eax, 4
mov eax, dword [eax]
test eax, eax
jg 0x43851a
mov al, 1
jmp 0x43852b
mov eax, dword [ebp - 8]
test eax, eax
je 0x438526
sub eax, 4
mov eax, dword [eax]
test eax, eax
setle al
test al, al
jne 0x43877e
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 0x43877e
xor edx, edx
push ebp
push 0x438777
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.004073e4
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 0x438760
xor edx, edx
push ebp
push 0x438759
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.004073e4
push eax
mov eax, dword [0x459d88]
call fcn.004073e4
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 0x438742
xor edx, edx
push ebp
push 0x43873b
push dword fs:[edx]
mov dword fs:[edx], esp
push 0x4387d0
lea eax, [ebp - 0x430]
mov edx, esi
call fcn.00407544
push dword [ebp - 0x430]
push 0x4387f0
push dword [0x46017c]
push 0x438808
push dword [0x460180]
push 0x438830
lea eax, [ebp - 0x434]
lea edx, [esi + 0x100]
call fcn.00407544
push dword [ebp - 0x434]
push 0x438848
lea eax, [ebp - 0x438]
lea edx, [esi + 0x200]
call fcn.00407544
push dword [ebp - 0x438]
push 0x438860
lea edx, [ebp - 0x43c]
mov eax, dword [esi + 0x300]
call fcn.0040fd80
push dword [ebp - 0x43c]
lea eax, [ebp - 0x42c]
mov edx, 0xc
call fcn.004076b0
mov edx, dword [ebp - 0x42c]
lea eax, [ebp - 0xc]
mov ecx, 0
call fcn.0040727c
mov eax, dword [0x459d80]
mov dword [ebp - 0x440], eax
mov ebx, dword [ebp - 0x440]
test ebx, ebx
je 0x43869a
sub ebx, 4
mov ebx, dword [ebx]
lea eax, [ebp - 0xc]
call fcn.004070ac
mov edi, eax
mov esi, dword [ebp - 0xc]
test esi, esi
je 0x4386b0
sub esi, 4
mov esi, dword [esi]
push esi
push edi
push ebx
mov eax, dword [0x459d80]
call fcn.004073e4
push eax
mov eax, dword [ebp - 0x1c]
push eax
call sub.wininet.dll_HttpSendRequestW
test eax, eax
jne 0x4386df
call fcn.0040634c
call fcn.0040634c
call fcn.0040634c
jmp 0x43877e
xor eax, eax
mov dword [ebp - 0x20], eax
lea eax, [ebp - 0x420]
xor ecx, ecx
mov edx, 0x400
call fcn.00404a8c
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 0x438724
cmp dword [ebp - 0x20], 0
jne 0x4386df
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x438742
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 0x438760
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 0x43877e
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 0x4387b8
lea eax, [ebp - 0x43c]
mov edx, 7
call fcn.00406b84
lea eax, [ebp - 0xc]
call fcn.00406b48
lea eax, [ebp - 8]
mov edx, 2
call fcn.00406b84
ret