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

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffffcac
push ebx
push esi
push edi
mov dword [ebp - 0x40], ecx
mov dword [ebp - 0x3c], edx
mov dword [ebp - 0x38], eax
mov eax, 0x4771c0
call fcn.00468644
mov word [ebp - 0x24], 8
lea eax, [ebp - 4]
call fcn.004015a4
mov edx, eax
inc dword [ebp - 0x18]
mov ecx, dword [ebp - 0x38]
mov eax, dword [ecx + 0x2e0]
call fcn.0043bc6c
lea eax, [ebp - 4]
call fcn.004026c0
push eax
call fcn.0046ad70
pop ecx
push eax
lea edx, [ebp - 0x154]
push edx
call fcn.004683d8
add esp, 8
dec dword [ebp - 0x18]
lea eax, [ebp - 4]
mov edx, 2
call fcn.0047274c
mov word [ebp - 0x24], 0x14
lea eax, [ebp - 8]
call fcn.004015a4
mov edx, eax
inc dword [ebp - 0x18]
mov ecx, dword [ebp - 0x38]
mov eax, dword [ecx + 0x2e4]
call fcn.0043bc6c
lea eax, [ebp - 8]
call fcn.004026c0
mov edx, eax
mov eax, dword [ebp - 0x38]
call fcn.0040a66c
push eax
call fcn.0046ad70
pop ecx
push eax
lea edx, [ebp - 0x254]
push edx
call fcn.004683d8
add esp, 8
dec dword [ebp - 0x18]
lea eax, [ebp - 8]
mov edx, 2
call fcn.0047274c
mov word [ebp - 0x24], 0x20
lea eax, [ebp - 0xc]
call fcn.004015a4
mov edx, eax
inc dword [ebp - 0x18]
mov ecx, dword [ebp - 0x38]
mov eax, dword [ecx + 0x2e8]
call fcn.0043bc6c
lea eax, [ebp - 0xc]
call fcn.004026c0
mov edx, eax
mov eax, dword [ebp - 0x38]
call fcn.0040a66c
push eax
call fcn.0046ad70
pop ecx
push eax
lea edx, [ebp - 0x354]
push edx
call fcn.004683d8
add esp, 8
dec dword [ebp - 0x18]
lea eax, [ebp - 0xc]
mov edx, 2
call fcn.0047274c
mov word [ebp - 0x24], 0x2c
mov word [ebp - 0x24], 0x38
lea eax, [ebp - 0x10]
call fcn.004015a4
mov edx, eax
inc dword [ebp - 0x18]
mov ecx, dword [ebp - 0x38]
mov eax, dword [ecx + 0x2ec]
call fcn.0043bc6c
lea eax, [ebp - 0x10]
mov eax, dword [eax]
call fcn.0045dbdc
mov dword [ebp - 0x50], eax
dec dword [ebp - 0x18]
lea eax, [ebp - 0x10]
mov edx, 2
call fcn.0047274c
mov word [ebp - 0x24], 0
jmp 0x40a55d
push 0
push 0
push 0
push 1
push str.SunupNetInternet
call sub.WININET.DLL_InternetOpenA
mov dword [ebp - 0x44], eax
cmp dword [ebp - 0x44], 0
ja 0x40a589
xor eax, eax
mov edx, dword [ebp - 0x34]
mov dword fs:[0], edx
jmp 0x40a662
push 0
push 0x8000000
push 1
lea ecx, [ebp - 0x354]
push ecx
lea eax, [ebp - 0x254]
push eax
mov dx, word [ebp - 0x50]
push edx
lea ecx, [ebp - 0x154]
push ecx
push dword [ebp - 0x44]
call sub.WININET.DLL_InternetConnectA
mov dword [ebp - 0x48], eax
cmp dword [ebp + 8], 0
jne 0x40a5d6
push 0
push 2
push 0x40000000
push dword [ebp - 0x3c]
push dword [ebp - 0x48]
call sub.WININET.DLL_FtpOpenFileA
mov dword [ebp - 0x4c], eax
jmp 0x40a5ed
push 0
push 2
push accept
push dword [ebp - 0x3c]
push dword [ebp - 0x48]
call sub.WININET.DLL_FtpOpenFileA
mov dword [ebp - 0x4c], eax
cmp dword [ebp - 0x4c], 0
jne 0x40a611
push dword [ebp - 0x48]
call sub.WININET.DLL_InternetCloseHandle
push dword [ebp - 0x44]
call sub.WININET.DLL_InternetCloseHandle
xor eax, eax
mov edx, dword [ebp - 0x34]
mov dword fs:[0], edx
jmp 0x40a662
cmp dword [ebp + 8], 0
jne 0x40a62b
lea ecx, [ebp - 0x54]
push ecx
push dword [ebp - 0x40]
push dword [ebp + 0x10]
push dword [ebp - 0x4c]
call sub.WININET.DLL_InternetWriteFile
jmp 0x40a63d
lea eax, [ebp - 0x54]
push eax
push dword [ebp - 0x40]
push dword [ebp + 0xc]
push dword [ebp - 0x4c]
call sub.WININET.DLL_InternetReadFile
push dword [ebp - 0x4c]
call sub.WININET.DLL_InternetCloseHandle
push dword [ebp - 0x48]
call sub.WININET.DLL_InternetCloseHandle
push dword [ebp - 0x44]
call sub.WININET.DLL_InternetCloseHandle
mov eax, dword [ebp - 0x54]
mov edx, dword [ebp - 0x34]
mov dword fs:[0], edx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 0xc