Function at 0x40fa70
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
push 0xffffffffffffffff
push 0x48bff6
mov eax, dword fs:[0]
push eax
mov eax, 0x1468
call fcn.004656d0
mov eax, dword [0x4ac068]
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 esi, edx
mov ebx, ecx
mov edi, dword [ebp + 0xc]
push 0
push 0
push 0
push 1
push str.MyApp
call dword [sym.imp.WININET.dll_InternetOpenW]
mov dword [ebp - 0x1438], eax
test eax, eax
je 0x40fcd3
push 4
lea ecx, [ebp - 0x141c]
mov dword [ebp - 0x141c], 0x2710
push ecx
push 2
push eax
call dword [sym.imp.WININET.dll_InternetSetOptionW]
cmp dword [esi + 0x14], 8
jb 0x40faee
mov esi, dword [esi]
push 0
push 0
push 3
push 0
push 0
push 0x50
push esi
mov esi, dword [ebp - 0x1438]
push esi
call dword [sym.imp.WININET.dll_InternetConnectW]
mov dword [ebp - 0x1440], eax
test eax, eax
jne 0x40fb1e
push esi
call dword [sym.imp.WININET.dll_InternetCloseHandle]
jmp 0x40fcd3
call fcn.0044e0f2
push 0
push 0x2710
push edx
push eax
call fcn.0048afb0
push edx
push eax
lea ecx, [ebp - 0x145c]
call fcn.0040c570
add esp, 8
mov esi, eax
mov dword [ebp - 4], 0
mov ecx, 0x7ffffffe
mov edx, dword [edi + 0x10]
sub ecx, edx
cmp ecx, 9
jb 0x40fe61
cmp dword [edi + 0x14], 8
jb 0x40fb65
mov edi, dword [edi]
push 9
push str._nocache
push edx
push edi
push ecx
push dword [ebp - 0x143c]
lea ecx, [ebp - 0x1474]
call fcn.00444f20
push esi
lea eax, [ebp - 0x1474]
mov byte [ebp - 4], 1
push eax
push dword [ebp - 0x143c]
lea ecx, [ebp - 0x1434]
call fcn.00444d60
mov byte [ebp - 4], 3
mov ecx, dword [ebp - 0x1460]
cmp ecx, 8
jb 0x40fbe1
mov edx, dword [ebp - 0x1474]
lea ecx, [ecx*2 + 2]
mov eax, edx
cmp ecx, 0x1000
jb 0x40fbd7
mov edx, dword [eax - 4]
add ecx, 0x23
sub eax, edx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x40fe66
push ecx
push edx
call fcn.00464974
add esp, 8
mov byte [ebp - 4], 4
mov ecx, dword [ebp - 0x1448]
cmp ecx, 8
jb 0x40fc25
mov edx, dword [ebp - 0x145c]
lea ecx, [ecx*2 + 2]
mov eax, edx
cmp ecx, 0x1000
jb 0x40fc1b
mov edx, dword [eax - 4]
add ecx, 0x23
sub eax, edx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x40fe66
push ecx
push edx
call fcn.00464974
add esp, 8
mov esi, dword [ebp - 0x1440]
xor eax, eax
cmp dword [ebp - 0x1420], 8
push 0
push 0x80000000
push 0
push 0
mov word [ebp - 0x145c], ax
lea eax, [ebp - 0x1434]
cmovae eax, dword [ebp - 0x1434]
push 0
push eax
push 0x4a1c14
push esi
mov dword [ebp - 0x144c], 0
mov dword [ebp - 0x1448], 7
call dword [sym.imp.WININET.dll_HttpOpenRequestW]
mov edi, eax
mov dword [ebp - 0x1444], edi
test edi, edi
jne 0x40fcf4
push esi
mov esi, dword [sym.imp.WININET.dll_InternetCloseHandle]
call esi
push dword [ebp - 0x1438]
call esi
mov ecx, dword [ebp - 0x1420]
cmp ecx, 8
jb 0x40fcd3
mov edx, dword [ebp - 0x1434]
lea ecx, [ecx*2 + 2]
mov eax, edx
cmp ecx, 0x1000
jb 0x40fcc9
mov edx, dword [eax - 4]
add ecx, 0x23
sub eax, edx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x40fe6b
push ecx
push edx
call fcn.00464974
add esp, 8
mov eax, 1
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.00464482
mov esp, ebp
pop ebp
ret
push 0
push 0
push 0
push 0
push edi
call dword [sym.imp.WININET.dll_HttpSendRequestW]
test eax, eax
jne 0x40fd1b
mov esi, dword [sym.imp.WININET.dll_InternetCloseHandle]
push edi
call esi
push dword [ebp - 0x1440]
jmp 0x40fc89
mov dword [ebx + 0x10], 0
mov eax, ebx
cmp dword [ebx + 0x14], 0x10
jb 0x40fd2c
mov eax, dword [ebx]
mov byte [eax], 0
lea eax, [ebp - 0x1418]
push eax
push 0x13ff
lea eax, [ebp - 0x1414]
push eax
push edi
call dword [sym.imp.WININET.dll_InternetReadFile]
test eax, eax
je 0x40fe05
mov eax, dword [ebp - 0x1418]
test eax, eax
je 0x40fe05
cmp eax, 0x1400
jae 0x40fe70
lea esi, [ebp - 0x1414]
mov byte [ebp + eax - 0x1414], 0
lea ecx, [esi + 1]
nop dword [eax + eax]
mov al, byte [esi]
inc esi
test al, al
jne 0x40fd80
mov edx, dword [ebx + 0x14]
sub esi, ecx
mov ecx, dword [ebx + 0x10]
mov eax, edx
sub eax, ecx
cmp esi, eax
ja 0x40fdc6
lea eax, [ecx + esi]
mov dword [ebx + 0x10], eax
mov eax, ebx
cmp edx, 0x10
jb 0x40fda6
mov eax, dword [ebx]
lea edi, [eax + ecx]
push esi
lea eax, [ebp - 0x1414]
push eax
push edi
call fcn.00465ec0
mov byte [edi + esi], 0
add esp, 0xc
mov edi, dword [ebp - 0x1444]
jmp 0x40fde3
push esi
lea eax, [ebp - 0x1414]
mov byte [ebp - 0x143c], 0
push eax
push dword [ebp - 0x143c]
mov ecx, ebx
push esi
call fcn.00442b80
lea eax, [ebp - 0x1418]
push eax
push 0x13ff
lea eax, [ebp - 0x1414]
push eax
push edi
call dword [sym.imp.WININET.dll_InternetReadFile]
test eax, eax
jne 0x40fd51
mov esi, dword [sym.imp.WININET.dll_InternetCloseHandle]
push edi
call esi
push dword [ebp - 0x1440]
call esi
push dword [ebp - 0x1438]
call esi
mov ecx, dword [ebp - 0x1420]
cmp ecx, 8
jb 0x40fe5a
mov edx, dword [ebp - 0x1434]
lea ecx, [ecx*2 + 2]
mov eax, edx
cmp ecx, 0x1000
jb 0x40fe50
mov edx, dword [eax - 4]
add ecx, 0x23
sub eax, edx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x40fe6b
push ecx
push edx
call fcn.00464974
add esp, 8
xor eax, eax
jmp 0x40fcd8
call fcn.004015e0
call fcn.0046d7bc
call fcn.0046d7bc
call fcn.00464ad0
int3