Function at 0x403fe0
Capabilities:
Check http status code
Connect to http server
Read data from internet
Receive data
Send data
Send http request

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x59700c
mov eax, dword fs:[0]
push eax
sub esp, 0x454
mov eax, dword [0x60cff4]
xor eax, ebp
mov dword [ebp - 0x14], eax
push ebx
push esi
push edi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov dword [ebp - 0x10], esp
mov edi, ecx
mov esi, dword [ebp + 8]
lea ecx, [ebp - 0x434]
mov dword [ebp - 0x424], edi
mov dword [ebp - 0x428], esi
call fcn.0043357c
push 0
mov dword [ebp - 4], 0
push str.data.dat
mov byte [ebp - 4], 1
call fcn.00435092
jmp 0x404064
mov dword [ebp - 4], 3
call fcn.0043365f
mov dword [ebp - 4], 0xffffffff
call fcn.00433b0d
mov ecx, eax
test ecx, ecx
je 0x4043f4
mov eax, dword [ecx]
call dword [eax + 0xc]
add eax, 0x10
mov dword [ebp - 0x41c], eax
mov dword [ebp - 4], 4
call fcn.00433b0d
mov ecx, eax
test ecx, ecx
je 0x4043fe
mov eax, dword [ecx]
call dword [eax + 0xc]
add eax, 0x10
mov dword [ebp - 0x418], eax
lea eax, [ebp - 0x42c]
mov byte [ebp - 4], 5
push eax
lea eax, [ebp - 0x418]
push eax
lea eax, [ebp - 0x41c]
push eax
lea eax, [ebp - 0x43c]
push eax
push dword [esi + 0x10]
call fcn.00433ed5
test eax, eax
je 0x40410f
push 0
push 0
push 3
push 0
push 0
push dword [ebp - 0x42c]
push dword [ebp - 0x41c]
push dword [edi + 8]
call dword [sym.imp.WININET.dll_InternetConnectW]
mov ebx, eax
mov dword [ebp - 0x430], ebx
test ebx, ebx
jne 0x404162
mov byte [ebp - 4], 4
or esi, 0xffffffff
mov edx, dword [ebp - 0x418]
mov eax, esi
add edx, 0xfffffff0
lock xadd dword [edx + 0xc], eax
dec eax
test eax, eax
jg 0x404133
mov ecx, dword [edx]
push edx
mov eax, dword [ecx]
call dword [eax + 4]
mov dword [ebp - 4], 0xffffffff
mov eax, esi
mov edx, dword [ebp - 0x41c]
add edx, 0xfffffff0
lock xadd dword [edx + 0xc], eax
dec eax
test eax, eax
jg 0x40422a
mov ecx, dword [edx]
push edx
mov eax, dword [ecx]
call dword [eax + 4]
mov eax, esi
jmp 0x4043d6
mov eax, dword [esi + 0x10]
cmp dword [eax - 0xc], 0
jl 0x4041b0
push str.https:__
push eax
call fcn.005709eb
add esp, 8
test eax, eax
je 0x4041b0
sub eax, dword [esi + 0x10]
sar eax, 1
cmp eax, 0xffffffff
je 0x4041b0
push 0
push 0x80c00200
push 0
push 0
push 0
push dword [ebp - 0x418]
push 0x5e2ce8
push ebx
call dword [sym.imp.WININET.dll_HttpOpenRequestW]
mov esi, eax
mov dword [ebp - 0x428], esi
jmp 0x4041d7
push 0
push 0x80400200
push 0
push 0
push 0
push dword [ebp - 0x418]
push 0x5e2ce8
push ebx
call dword [sym.imp.WININET.dll_HttpOpenRequestW]
mov esi, eax
mov dword [ebp - 0x428], eax
test esi, esi
jne 0x404231
push ebx
call dword [sym.imp.WININET.dll_InternetCloseHandle]
mov byte [ebp - 4], 4
or esi, 0xffffffff
mov edx, dword [ebp - 0x418]
mov eax, esi
add edx, 0xfffffff0
lock xadd dword [edx + 0xc], eax
dec eax
test eax, eax
jg 0x404206
mov ecx, dword [edx]
push edx
mov eax, dword [ecx]
call dword [eax + 4]
mov dword [ebp - 4], 0xffffffff
mov eax, esi
mov edi, dword [ebp - 0x41c]
add edi, 0xfffffff0
lock xadd dword [edi + 0xc], eax
dec eax
test eax, eax
jg 0x40422a
mov ecx, dword [edi]
push edi
mov edx, dword [ecx]
call dword [edx + 4]
mov eax, esi
jmp 0x4043d6
push 0
push 0
push 0
push 0
push esi
or edi, 0xffffffff
call dword [sym.imp.WININET.dll_HttpSendRequestW]
test eax, eax
je 0x404382
push 0
lea eax, [ebp - 0x424]
mov dword [ebp - 0x424], 4
push eax
lea eax, [ebp - 0x420]
push eax
push 0x20000013
push esi
call dword [sym.imp.WININET.dll_HttpQueryInfoW]
test eax, eax
je 0x404382
cmp dword [ebp - 0x420], 0xc8
jne 0x404382
lea ecx, [ebp - 0x460]
call fcn.00435675
push 0
push 0x9011
push str.data.dat
lea ecx, [ebp - 0x460]
mov byte [ebp - 4], 6
call fcn.0043597e
test eax, eax
je 0x404377
nop word [eax + eax]
lea eax, [ebp - 0x420]
push eax
push 0x400
lea eax, [ebp - 0x414]
push eax
push esi
call dword [sym.imp.WININET.dll_InternetReadFile]
test eax, eax
jne 0x4042e6
or edi, 0xffffffff
jmp 0x40436c
cmp dword [ebp - 0x420], 0
je 0x40436c
lea ecx, [ebp - 0x448]
call fcn.0043357c
mov byte [ebp - 4], 8
lea eax, [ebp - 0x414]
push dword [ebp - 0x420]
lea ecx, [ebp - 0x460]
push eax
call fcn.00435cf3
add edi, dword [ebp - 0x420]
mov dword [ebp - 4], 0xb
call fcn.0043365f
mov byte [ebp - 4], 6
jmp 0x4042c0
lea ecx, [ebp - 0x460]
call fcn.00435848
lea ecx, [ebp - 0x460]
call fcn.00435697
push esi
mov esi, dword [sym.imp.WININET.dll_InternetCloseHandle]
call esi
push ebx
call esi
mov byte [ebp - 4], 4
or esi, 0xffffffff
mov edx, dword [ebp - 0x418]
mov eax, esi
add edx, 0xfffffff0
lock xadd dword [edx + 0xc], eax
dec eax
test eax, eax
jg 0x4043b2
mov ecx, dword [edx]
push edx
mov eax, dword [ecx]
call dword [eax + 4]
mov dword [ebp - 4], 0xffffffff
mov eax, dword [ebp - 0x41c]
add eax, 0xfffffff0
lock xadd dword [eax + 0xc], esi
dec esi
test esi, esi
jg 0x4043d4
mov ecx, dword [eax]
push eax
mov edx, dword [ecx]
call dword [edx + 4]
mov eax, edi
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 0x14]
xor ecx, ebp
call fcn.0056e21e
mov esp, ebp
pop ebp
ret 4
push 0x80004005
call fcn.00406290
push 0x80004005
call fcn.00406290
int3