Function at 0x524430
Capabilities:
Create thread

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x576353
mov eax, dword fs:[0]
push eax
sub esp, 0xa0
mov eax, dword [0x5e56f0]
xor eax, ebp
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov dword [ebp - 0x14], ecx
push 0xb4
call fcn.0054a46d
add esp, 4
mov dword [ebp - 0x20], eax
mov dword [ebp - 4], 0
cmp dword [ebp - 0x20], 0
je 0x524485
mov ecx, dword [ebp - 0x20]
call fcn.00540840
mov dword [ebp - 0x24], eax
jmp 0x52448c
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.0054cf60
add esp, 0xc
push str.socketerror
mov ecx, dword [ebp - 0x10]
call fcn.004e90e0
mov eax, dword [ebp - 0x14]
add eax, 0x2d4
push eax
mov ecx, dword [ebp - 0x10]
add ecx, 0x18
call fcn.004e90c0
mov ecx, dword [ebp - 0x14]
add ecx, 0x2bc
push ecx
mov ecx, dword [ebp - 0x10]
add ecx, 0x30
call fcn.004e90c0
mov edx, dword [ebp - 0x14]
add edx, 0x2ec
push edx
mov ecx, dword [ebp - 0x10]
add ecx, 0x48
call fcn.004e90c0
lea eax, [ebp - 0x94]
push eax
call fcn.004e54f0
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.004e9c60
push eax
lea edx, [ebp - 0x64]
push edx
call fcn.004e19c0
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.004e9050
lea ecx, [ebp - 0x64]
call fcn.004e9090
mov dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x94]
call fcn.004e99a0
mov ecx, dword [ebp - 0x14]
add ecx, 0x204
call fcn.004e9c60
push eax
lea ecx, [ebp - 0x7c]
push ecx
call fcn.004e19c0
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.004e9dc0
mov dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x7c]
call fcn.004e9090
mov ecx, dword [ebp - 0x14]
add ecx, 0x310
push ecx
mov ecx, dword [ebp - 0x10]
add ecx, 0x9c
call fcn.004e90c0
mov dword [ebp - 0x18], 0
jmp 0x5245d3
mov edx, dword [ebp - 0x18]
add edx, 1
mov dword [ebp - 0x18], edx
mov ecx, dword [ebp - 0x14]
add ecx, 0x20
call fcn.004ea130
cmp dword [ebp - 0x18], eax
jae 0x524668
mov eax, dword [ebp - 0x18]
push eax
mov ecx, dword [ebp - 0x14]
add ecx, 0x20
call fcn.004ea150
push eax
mov ecx, dword [ebp - 0x14]
add ecx, 0x204
call fcn.004e9d20
test eax, eax
je 0x524663
mov ecx, dword [ebp - 0x18]
push ecx
mov ecx, dword [ebp - 0x14]
add ecx, 0x20
call fcn.004ea150
mov ecx, eax
call fcn.004e9c60
push eax
lea edx, [ebp - 0xac]
push edx
call fcn.004e19c0
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.004e9dc0
mov dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0xac]
call fcn.004e9090
jmp 0x5245ca
push 8
call fcn.0054a46d
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.0054cf60
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 0x53d7e0
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