Function at 0x51935c
Capabilities:
Connect socket

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffffff0
push ebx
push esi
push edi
xor edx, edx
mov dword [ebp - 0x10], edx
mov dword [ebp - 4], eax
xor eax, eax
push ebp
push 0x519653
push dword fs:[eax]
mov dword fs:[eax], esp
mov ecx, 0x51966c
mov dl, 8
mov eax, dword [ebp - 4]
call fcn.0051a934
mov eax, dword [ebp - 4]
mov byte [eax + 0x10088], 0
mov eax, dword [ebp - 4]
cmp byte [eax + 0x10290], 0
je 0x5193b6
mov ecx, 0x519680
mov dl, 1
mov eax, dword [0x518d3c]
call fcn.0040e274
call fcn.00403ab8
xor eax, eax
mov dword [ebp - 8], eax
xor eax, eax
push ebp
push 0x5193db
push dword fs:[eax]
mov dword fs:[eax], esp
mov eax, dword [ebp - 4]
call fcn.0051aa8c
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
jmp 0x519416
mov eax, dword [ebp - 4]
cmp dword [eax + 0x10260], 0
jne 0x51949a
cmp dword [ebp - 8], 0
jle 0x519440
mov ecx, 0x5196dc
mov dl, 1
mov eax, dword [0x518d3c]
call fcn.0040e274
call fcn.00403ab8
jmp 0x51949a
mov eax, dword [ebp - 4]
cmp word [eax + 0x1005a], 0
jne 0x519465
mov ecx, 0x5196dc
mov dl, 1
mov eax, dword [0x518d3c]
call fcn.0040e274
call fcn.00403ab8
jmp 0x51949a
mov byte [ebp - 9], 0
lea edx, [ebp - 9]
mov ebx, dword [ebp - 4]
mov eax, dword [ebx + 0x1005c]
call dword [ebx + 0x10058]
cmp byte [ebp - 9], 0
jne 0x519497
mov ecx, 0x5196dc
mov dl, 1
mov eax, dword [0x518d3c]
call fcn.0040e274
call fcn.00403ab8
inc dword [ebp - 8]
mov eax, dword [ebp - 4]
cmp dword [eax + 0x10260], 0
je 0x5193bb
mov eax, dword [ebp - 4]
mov word [eax + 0x1025c], 2
mov eax, dword [ebp - 4]
cmp dword [eax + 0x1009c], 0
jne 0x5194de
mov eax, dword [ebp - 4]
mov ax, word [eax + 0x100ac]
push eax
call sub.wsock32.dll_htons
mov edx, dword [ebp - 4]
mov word [edx + 0x1025e], ax
jmp 0x5194f8
mov eax, dword [ebp - 4]
mov ax, word [eax + 0x100a0]
push eax
call sub.wsock32.dll_htons
mov edx, dword [ebp - 4]
mov word [edx + 0x1025e], ax
mov eax, dword [ebp - 4]
mov byte [eax + 0x100c8], 0
mov eax, 0x10
mov edx, dword [ebp - 4]
mov byte [edx + 0x100a8], 1
push eax
mov eax, dword [ebp - 4]
add eax, 0x1025c
push eax
mov eax, dword [ebp - 4]
movzx eax, word [eax + 0x10288]
push eax
call sub.wsock32.dll_connect
inc eax
jne 0x51953d
lea ecx, [ebp - 0x10]
mov dx, 0x2733
mov eax, dword [ebp - 4]
call fcn.0051a868
mov eax, dword [ebp - 4]
call fcn.0051a1c4
push 2
call sub.kernel32.dll_Sleep
mov eax, dword [0x9b8724]
mov eax, dword [eax]
call fcn.0045b17c
mov eax, dword [ebp - 4]
cmp byte [eax + 0x10290], 0
jne 0x519588
mov eax, dword [ebp - 4]
cmp byte [eax + 0x100a9], 0
jne 0x519588
mov eax, dword [ebp - 4]
cmp byte [eax + 0x10088], 0
jne 0x519588
mov eax, dword [ebp - 4]
cmp byte [eax + 0x100a8], 0
jne 0x519545
mov eax, dword [ebp - 4]
call fcn.0051a21c
mov eax, dword [ebp - 4]
cmp byte [eax + 0x100a9], 0
jne 0x5195b8
mov eax, dword [ebp - 4]
cmp byte [eax + 0x10088], 0
jne 0x5195b8
mov eax, dword [ebp - 4]
cmp byte [eax + 0x100a8], 0
jne 0x51963d
mov eax, dword [ebp - 4]
cmp word [eax + 0x1007a], 0
je 0x5195d7
mov ebx, dword [ebp - 4]
mov edx, dword [ebp - 4]
mov eax, dword [ebx + 0x1007c]
call dword [ebx + 0x10078]
mov eax, dword [ebp - 4]
cmp byte [eax + 0x100a9], 0
je 0x5195f9
mov ecx, 0x5196f8
mov dl, 1
mov eax, dword [0x518d3c]
call fcn.0040e274
call fcn.00403ab8
mov eax, dword [ebp - 4]
cmp byte [eax + 0x10088], 0
je 0x51961b
mov ecx, 0x519718
mov dl, 1
mov eax, dword [0x518d3c]
call fcn.0040e274
call fcn.00403ab8
mov eax, dword [ebp - 4]
cmp byte [eax + 0x100a8], 0
jne 0x51963d
mov ecx, 0x519734
mov dl, 1
mov eax, dword [0x518d3c]
call fcn.0040e274
call fcn.00403ab8
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x51965a
lea eax, [ebp - 0x10]
call fcn.00404088
ret