Function at 0x54ac58
Capabilities:
Connect socket

Disassembly:
push ebp
mov ebp, esp
add esp, 0xffffffac
push ebx
push esi
push edi
xor edx, edx
mov dword [ebp - 0x30], edx
mov dword [ebp - 0x54], edx
mov dword [ebp - 0x28], edx
mov dword [ebp - 0x2c], edx
mov dword [ebp - 0xc], edx
mov ebx, eax
xor eax, eax
push ebp
push 0x54ae7d
push dword fs:[eax]
mov dword fs:[eax], esp
mov byte [ebp - 1], 0
lea ecx, [ebp - 8]
mov dl, byte [ebx + 0x2c]
mov eax, dword [ebx + 0x18]
call fcn.0054a728
xor edx, edx
push ebp
push 0x54ae4b
push dword fs:[edx]
mov dword fs:[edx], esp
test eax, eax
je 0x54acf3
call fcn.0054a720
mov esi, eax
mov dword [ebx + 8], esi
lea eax, [ebp - 0xc]
push eax
mov eax, dword [ebx + 0x18]
mov dword [ebp - 0x24], eax
mov byte [ebp - 0x20], 0xb
mov dword [ebp - 0x1c], esi
mov byte [ebp - 0x18], 0
mov dword [ebp - 0x14], esi
mov byte [ebp - 0x10], 0
lea edx, [ebp - 0x24]
mov ecx, 2
mov eax, 0x54ae98
call fcn.0040b030
mov edx, dword [ebp - 0xc]
lea eax, [ebx + 4]
call fcn.00404adc
call fcn.004044b0
jmp 0x54ae52
cmp dword [ebp - 8], 0
jne 0x54ad0d
mov ecx, 0xe9
mov edx, 0x54aed0
mov eax, 0x54af00
call fcn.004049e4
mov eax, dword [ebp - 8]
mov eax, dword [eax + 0x18]
call fcn.0054a8f8
mov esi, eax
mov dword [ebx + 0x30], esi
inc esi
jne 0x54ad7a
call fcn.0054a720
mov esi, eax
mov dword [ebx + 8], esi
lea eax, [ebp - 0x28]
push eax
lea edx, [ebp - 0x2c]
mov eax, esi
call fcn.0040d954
mov eax, dword [ebp - 0x2c]
mov dword [ebp - 0x24], eax
mov byte [ebp - 0x20], 0xb
mov edi, dword [ebx + 8]
mov dword [ebp - 0x1c], edi
mov byte [ebp - 0x18], 0
mov dword [ebp - 0x14], edi
mov byte [ebp - 0x10], 0
lea edx, [ebp - 0x24]
mov ecx, 2
mov eax, 0x54af1c
call fcn.0040b030
mov edx, dword [ebp - 0x28]
lea eax, [ebx + 4]
call fcn.00404adc
call fcn.004044b0
jmp 0x54ae52
mov ax, word [ebx + 0x1c]
push eax
call sub.wsock32.dll_htons
mov edx, dword [ebp - 8]
mov edx, dword [edx + 0x18]
mov word [edx + 2], ax
mov eax, dword [ebp - 8]
mov eax, dword [eax + 0x10]
push eax
mov eax, dword [ebp - 8]
mov eax, dword [eax + 0x18]
push eax
mov eax, dword [ebx + 0x30]
push eax
call sub.wsock32.dll_connect
test eax, eax
jge 0x54ae16
call sub.wsock32.dll_WSAGetLastError
cmp eax, 0x2733
je 0x54ae16
call fcn.0054a720
mov esi, eax
mov dword [ebx + 8], esi
lea eax, [ebp - 0x30]
push eax
mov eax, dword [ebx + 0x18]
mov dword [ebp - 0x50], eax
mov byte [ebp - 0x4c], 0xb
lea edx, [ebp - 0x54]
mov eax, esi
call fcn.0040d954
mov eax, dword [ebp - 0x54]
mov dword [ebp - 0x48], eax
mov byte [ebp - 0x44], 0xb
mov edi, dword [ebx + 8]
mov dword [ebp - 0x40], edi
mov byte [ebp - 0x3c], 0
mov dword [ebp - 0x38], edi
mov byte [ebp - 0x34], 0
lea edx, [ebp - 0x50]
mov ecx, 3
mov eax, 0x54af64
call fcn.0040b030
mov edx, dword [ebp - 0x30]
lea eax, [ebx + 4]
call fcn.00404adc
call fcn.004044b0
jmp 0x54ae52
mov byte [ebp - 1], 1
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x54ae52
cmp dword [ebp - 8], 0
je 0x54ae4a
call fcn.0054a4d8
test al, al
jne 0x54ae40
mov eax, dword [ebp - 8]
call fcn.0054a5a0
jmp 0x54ae4a
mov eax, dword [ebp - 8]
push eax
call dword [0x647da4]
ret
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x54ae84
lea eax, [ebp - 0x54]
call fcn.00404a88
lea eax, [ebp - 0x30]
mov edx, 3
call fcn.00404aac
lea eax, [ebp - 0xc]
call fcn.00404a88
ret