Function at 0x4ac470
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 0x517d88
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x30
mov eax, dword [0x5580c0]
push ebp
push esi
push edi
mov dword [esp + 0xc], eax
mov dword [esp + 0x44], 0
call fcn.004f80f4
mov eax, dword [eax + 4]
lea ecx, [esp + 0xc]
add eax, 0x844
push eax
call fcn.004dd586
call fcn.004f80f4
mov eax, dword [eax + 4]
mov di, word [eax + 0x848]
call fcn.004f80f4
mov eax, dword [eax + 4]
mov ebp, dword [eax + 0x84c]
mov eax, dword [esp + 0xc]
mov ecx, dword [eax - 8]
test ecx, ecx
jne 0x4ac4e2
push 0x28
jmp 0x4ac757
push eax
call sub.WSOCK32.dll_gethostbyname
mov esi, eax
test esi, esi
jne 0x4ac504
mov edx, dword [esp + 0x58]
push 0x29
push 0xc73a
push 0x111
push edx
jmp 0x4ac766
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 0x4ac586
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.004dd44d
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 0x4ac5d1
push 0x2726
call sub.WSOCK32.dll_WSASetLastError
mov edx, dword [esp + 0x58]
push 0x2b
push 0xc73a
push 0x111
push edx
jmp 0x4ac766
push 0
lea eax, [esp + 0x14]
push 2
push eax
push esi
call sub.WSOCK32.dll_recv
cmp eax, 2
jne 0x4ac74b
cmp byte [esp + 0x10], 5
jne 0x4ac74b
mov al, byte [esp + 0x11]
test al, al
je 0x4ac61c
cmp al, 2
jne 0x4ac74b
test ebp, ebp
je 0x4ac615
push esi
call fcn.004ac2d0
add esp, 4
test eax, eax
jne 0x4ac61c
push 0x2c
jmp 0x4ac72a
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 0x4ac74b
push 0
lea edx, [esp + 0x24]
push eax
push edx
push esi
call sub.WSOCK32.dll_recv
cmp eax, 0xa
je 0x4ac68f
push 0x2726
call sub.WSOCK32.dll_WSASetLastError
mov eax, dword [esp + 0x58]
push 0x2b
push 0xc73a
push 0x111
push eax
jmp 0x4ac766
cmp byte [esp + 0x20], 5
jne 0x4ac74b
mov eax, dword [esp + 0x21]
and eax, 0xff
cmp eax, 8
ja case.0x4ac6a8.5
jmp dword [eax*4 + 0x4ac794]
lea ecx, [esp + 0xc]
mov dword [esp + 0x44], 0xffffffff
call fcn.004dd44d
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 0x4ac72a
mov eax, dword [esp + 0x58]
push 0x22
push 0xc73a
push 0x111
push eax
jmp 0x4ac739
mov ecx, dword [esp + 0x58]
push 0x23
push 0xc73a
push 0x111
push ecx
jmp 0x4ac739
push 0x24
jmp 0x4ac72a
mov eax, dword [esp + 0x58]
push 0x24
push 0xc73a
push 0x111
push eax
jmp 0x4ac739
mov ecx, dword [esp + 0x58]
push 0x26
push 0xc73a
push 0x111
push ecx
jmp 0x4ac739
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 0x4ac76c
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.004dd44d
mov ecx, dword [esp + 0x3c]
pop edi
pop esi
or eax, 0xffffffff
pop ebp
mov dword fs:[0], ecx
add esp, 0x3c
ret