Function at 0x4ac0e0
Capabilities:
Access peb ldr_data
Connect socket
Receive data
Receive data on socket
Resolve dns
Send data
Send data on socket

Disassembly:
push 0xffffffffffffffff
push 0x517a18
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x30
mov eax, dword [0x5580a0]
push ebp
push esi
push edi
mov dword [esp + 0xc], eax
mov dword [esp + 0x44], 0
call fcn.004f7db8
mov eax, dword [eax + 4]
lea ecx, [esp + 0xc]
add eax, 0x844
push eax
call fcn.004dd24a
call fcn.004f7db8
mov eax, dword [eax + 4]
mov di, word [eax + 0x848]
call fcn.004f7db8
mov eax, dword [eax + 4]
mov ebp, dword [eax + 0x84c]
mov eax, dword [esp + 0xc]
mov ecx, dword [eax - 8]
test ecx, ecx
jne 0x4ac152
push 0x28
jmp 0x4ac3c7
push eax
call sub.WSOCK32.dll_gethostbyname
mov esi, eax
test esi, esi
jne 0x4ac174
mov edx, dword [esp + 0x58]
push 0x29
push 0xc73a
push 0x111
push edx
jmp 0x4ac3d6
xor eax, eax
push edi
mov dword [esp + 0x30], eax
mov word [esp + 0x30], 2
mov dword [esp + 0x34], eax
mov dword [esp + 0x38], eax
mov dword [esp + 0x3c], eax
call sub.WSOCK32.dll_htons
mov word [esp + 0x2e], ax
mov ecx, dword [esi + 0xc]
mov esi, dword [esp + 0x4c]
push 0x10
mov edx, dword [ecx]
lea ecx, [esp + 0x30]
push ecx
push esi
mov eax, dword [edx]
mov dword [esp + 0x3c], eax
call sub.WSOCK32.dll_connect
mov edi, eax
test edi, edi
je 0x4ac1f6
mov edx, dword [esp + 0x58]
push 0x2a
push 0xc73a
push 0x111
push edx
call dword [sym.imp.USER32.dll_PostMessageA]
lea ecx, [esp + 0xc]
mov dword [esp + 0x44], 0xffffffff
call fcn.004dd111
mov eax, edi
pop edi
pop esi
pop ebp
mov ecx, dword [esp + 0x30]
mov dword fs:[0], ecx
add esp, 0x3c
ret
mov eax, ebp
push 0
neg eax
sbb al, al
lea ecx, [esp + 0x14]
push 3
and eax, 2
push ecx
push esi
mov byte [esp + 0x20], 5
mov byte [esp + 0x21], 1
mov byte [esp + 0x22], al
call sub.WSOCK32.dll_send
cmp eax, 3
je 0x4ac241
push 0x2726
call sub.WSOCK32.dll_WSASetLastError
mov edx, dword [esp + 0x58]
push 0x2b
push 0xc73a
push 0x111
push edx
jmp 0x4ac3d6
push 0
lea eax, [esp + 0x14]
push 2
push eax
push esi
call sub.WSOCK32.dll_recv
cmp eax, 2
jne 0x4ac3bb
cmp byte [esp + 0x10], 5
jne 0x4ac3bb
mov al, byte [esp + 0x11]
test al, al
je 0x4ac28c
cmp al, 2
jne 0x4ac3bb
test ebp, ebp
je 0x4ac285
push esi
call fcn.004abf40
add esp, 4
test eax, eax
jne 0x4ac28c
push 0x2c
jmp 0x4ac39a
mov eax, dword [esp + 0x50]
push 0
push 0xa
mov byte [esp + 0x1c], 5
mov ecx, dword [eax + 4]
mov dx, word [eax + 2]
lea eax, [esp + 0x1c]
mov byte [esp + 0x1f], 1
push eax
push esi
mov byte [esp + 0x25], 1
mov byte [esp + 0x26], 0
mov dword [esp + 0x28], ecx
mov word [esp + 0x2c], dx
call sub.WSOCK32.dll_send
cmp eax, 0xa
jne 0x4ac3bb
push 0
lea edx, [esp + 0x24]
push eax
push edx
push esi
call sub.WSOCK32.dll_recv
cmp eax, 0xa
je 0x4ac2ff
push 0x2726
call sub.WSOCK32.dll_WSASetLastError
mov eax, dword [esp + 0x58]
push 0x2b
push 0xc73a
push 0x111
push eax
jmp 0x4ac3d6
cmp byte [esp + 0x20], 5
jne 0x4ac3bb
mov eax, dword [esp + 0x21]
and eax, 0xff
cmp eax, 8
ja case.0x4ac318.5
jmp dword [eax*4 + 0x4ac404]
lea ecx, [esp + 0xc]
mov dword [esp + 0x44], 0xffffffff
call fcn.004dd111
pop edi
pop esi
xor eax, eax
pop ebp
mov ecx, dword [esp + 0x30]
mov dword fs:[0], ecx
add esp, 0x3c
ret
push 0x2d
jmp 0x4ac39a
mov eax, dword [esp + 0x58]
push 0x22
push 0xc73a
push 0x111
push eax
jmp 0x4ac3a9
mov ecx, dword [esp + 0x58]
push 0x23
push 0xc73a
push 0x111
push ecx
jmp 0x4ac3a9
push 0x24
jmp 0x4ac39a
mov eax, dword [esp + 0x58]
push 0x24
push 0xc73a
push 0x111
push eax
jmp 0x4ac3a9
mov ecx, dword [esp + 0x58]
push 0x26
push 0xc73a
push 0x111
push ecx
jmp 0x4ac3a9
push 0x27
mov edx, dword [esp + 0x5c]
push 0xc73a
push 0x111
push edx
call dword [sym.imp.USER32.dll_PostMessageA]
push 0x2726
call sub.WSOCK32.dll_WSASetLastError
jmp 0x4ac3dc
push 0x2726
call sub.WSOCK32.dll_WSASetLastError
push 0x2b
mov ecx, dword [esp + 0x5c]
push 0xc73a
push 0x111
push ecx
call dword [sym.imp.USER32.dll_PostMessageA]
lea ecx, [esp + 0xc]
mov dword [esp + 0x44], 0xffffffff
call fcn.004dd111
mov ecx, dword [esp + 0x3c]
pop edi
pop esi
or eax, 0xffffffff
pop ebp
mov dword fs:[0], ecx
add esp, 0x3c
ret