Function at 0x51bee0
Capabilities:
Create thread

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x56bbc3
mov eax, dword fs:[0]
push eax
sub esp, 0xa0
mov eax, dword [0x5d86f0]
xor eax, ebp
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov dword [ebp - 0x14], ecx
push 0xb4
call fcn.0054209e
add esp, 4
mov dword [ebp - 0x20], eax
mov dword [ebp - 4], 0
cmp dword [ebp - 0x20], 0
je 0x51bf35
mov ecx, dword [ebp - 0x20]
call fcn.00538450
mov dword [ebp - 0x24], eax
jmp 0x51bf3c
mov dword [ebp - 0x24], 0
mov eax, dword [ebp - 0x24]
mov dword [ebp - 0x38], eax
mov dword [ebp - 4], 0xffffffff
mov ecx, dword [ebp - 0x38]
mov dword [ebp - 0x10], ecx
push 0xb4
push 0
mov edx, dword [ebp - 0x10]
push edx
call fcn.005443d0
add esp, 0xc
push str.socketerror
mov ecx, dword [ebp - 0x10]
call fcn.004e7fc0
mov eax, dword [ebp - 0x14]
add eax, 0x2d4
push eax
mov ecx, dword [ebp - 0x10]
add ecx, 0x18
call fcn.004e7fa0
mov ecx, dword [ebp - 0x14]
add ecx, 0x2bc
push ecx
mov ecx, dword [ebp - 0x10]
add ecx, 0x30
call fcn.004e7fa0
mov edx, dword [ebp - 0x14]
add edx, 0x2ec
push edx
mov ecx, dword [ebp - 0x10]
add ecx, 0x48
call fcn.004e7fa0
lea eax, [ebp - 0x94]
push eax
call fcn.004e50b0
add esp, 4
mov dword [ebp - 0x30], eax
mov ecx, dword [ebp - 0x30]
mov dword [ebp - 0x48], ecx
mov dword [ebp - 4], 1
mov ecx, dword [ebp - 0x48]
call fcn.004e8b40
push eax
lea edx, [ebp - 0x64]
push edx
call fcn.004e1740
add esp, 8
mov dword [ebp - 0x28], eax
mov eax, dword [ebp - 0x28]
push eax
mov ecx, dword [ebp - 0x10]
add ecx, 0x60
call fcn.004e7f30
lea ecx, [ebp - 0x64]
call fcn.004e7f70
mov dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x94]
call fcn.004e8880
mov ecx, dword [ebp - 0x14]
add ecx, 0x204
call fcn.004e8b40
push eax
lea ecx, [ebp - 0x7c]
push ecx
call fcn.004e1740
add esp, 8
mov dword [ebp - 0x44], eax
mov edx, dword [ebp - 0x44]
mov dword [ebp - 0x40], edx
mov dword [ebp - 4], 2
mov eax, dword [ebp - 0x40]
push eax
mov ecx, dword [ebp - 0x10]
add ecx, 0x90
call fcn.004e8ca0
mov dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x7c]
call fcn.004e7f70
mov ecx, dword [ebp - 0x14]
add ecx, 0x310
push ecx
mov ecx, dword [ebp - 0x10]
add ecx, 0x9c
call fcn.004e7fa0
mov dword [ebp - 0x18], 0
jmp 0x51c083
mov edx, dword [ebp - 0x18]
add edx, 1
mov dword [ebp - 0x18], edx
mov ecx, dword [ebp - 0x14]
add ecx, 0x20
call fcn.004e8f90
cmp dword [ebp - 0x18], eax
jae 0x51c118
mov eax, dword [ebp - 0x18]
push eax
mov ecx, dword [ebp - 0x14]
add ecx, 0x20
call fcn.004e8fb0
push eax
mov ecx, dword [ebp - 0x14]
add ecx, 0x204
call fcn.004e8c00
test eax, eax
je 0x51c113
mov ecx, dword [ebp - 0x18]
push ecx
mov ecx, dword [ebp - 0x14]
add ecx, 0x20
call fcn.004e8fb0
mov ecx, eax
call fcn.004e8b40
push eax
lea edx, [ebp - 0xac]
push edx
call fcn.004e1740
add esp, 8
mov dword [ebp - 0x4c], eax
mov eax, dword [ebp - 0x4c]
mov dword [ebp - 0x2c], eax
mov dword [ebp - 4], 3
mov ecx, dword [ebp - 0x2c]
push ecx
mov ecx, dword [ebp - 0x10]
add ecx, 0x90
call fcn.004e8ca0
mov dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0xac]
call fcn.004e7f70
jmp 0x51c07a
push 8
call fcn.0054209e
add esp, 4
mov dword [ebp - 0x34], eax
mov edx, dword [ebp - 0x34]
mov dword [ebp - 0x1c], edx
push 8
push 0
mov eax, dword [ebp - 0x1c]
push eax
call fcn.005443d0
add esp, 0xc
mov ecx, dword [ebp - 0x1c]
mov dword [ecx], 5
mov edx, dword [ebp - 0x1c]
mov eax, dword [ebp - 0x10]
mov dword [edx + 4], eax
push 0
push 0
mov ecx, dword [ebp - 0x1c]
push ecx
push 0x535200
push 0
push 0
call dword [sym.imp.KERNEL32.dll_CreateThread]
mov dword [ebp - 0x3c], eax
mov edx, dword [ebp - 0x3c]
push edx
call dword [sym.imp.KERNEL32.dll_CloseHandle]
xor eax, eax
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
mov esp, ebp
pop ebp
ret 0x10