Function at 0x51a262
Capabilities:
Create thread

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x38
mov dword [ebp - 4], 0
mov dword [ebp - 8], 0
mov dword [ebp - 0xc], 0
push 0x2c
call fcn.005b82e0
add esp, 4
mov dword [ebp - 0x10], eax
mov ebx, eax
mov edi, eax
xor eax, eax
mov ecx, 0xb
rep stosd dword es:[edi], eax
mov dword [ebx], 0x66e002
mov dword [ebp - 0x14], 0
mov dword [ebp - 0x18], 0
mov dword [ebp - 0x1c], 0
push dword [ebp + 0x10]
call fcn.00473b9e
mov dword [ebp - 4], eax
cmp dword [ebp - 4], 0x80000006
jne 0x51a300
lea eax, [ebp - 8]
push eax
push dword [ebp + 0x10]
call fcn.00475235
push reloc.oleaut32.dll_SysStringLen
push 0
push dword [ebp - 8]
push 1
mov ebx, 0x9dc
call fcn.005b97f0
add esp, 0x10
mov dword [ebp - 0xc], eax
jmp 0x51a32f
cmp dword [ebp - 4], 0x80000301
jne 0x51a31d
push dword [ebp + 0x10]
call fcn.0046d7eb
mov dword [ebp - 0xc], eax
jmp 0x51a32f
push 0
push dword [ebp + 8]
call fcn.004708db
jmp 0x51a5d0
lea eax, [ebp - 0x10]
push eax
mov eax, dword [esp]
mov eax, dword [eax]
mov eax, dword [eax]
call dword [eax + 0x18]
mov dword [ebp - 0x20], 0
push 0
push dword [ebp - 0x20]
push dword [ebp - 0xc]
lea eax, [ebp - 0x10]
push eax
mov eax, dword [esp]
mov eax, dword [eax]
mov eax, dword [eax]
call dword [eax + 0x48]
push 2
push dword [ebp + 0x10]
call fcn.00470b2d
test eax, eax
je 0x51a393
mov dword [ebp - 0x20], 0
push 0
push dword [ebp - 0x20]
push 0
lea eax, [ebp - 0x10]
push eax
mov eax, dword [esp]
mov eax, dword [eax]
mov eax, dword [eax]
call dword [eax + 0x48]
jmp 0x51a4d4
fild dword [ebp + 0x10]
fstp qword [ebp - 0x24]
fld qword [ebp - 0x24]
fadd qword [0x66d8c7]
fstp qword [ebp - 0x2c]
fld qword [ebp - 0x2c]
call fcn.0046cf90
mov dword [ebp - 0x14], eax
push dword [ebp - 0x14]
call fcn.00473b9e
mov dword [ebp - 4], eax
push dword [ebp - 0x14]
call fcn.0046d7eb
mov dword [ebp - 0x20], eax
mov dword [ebp - 0x24], 0
push 0
push dword [ebp - 0x24]
push dword [ebp - 0x20]
lea eax, [ebp - 0x10]
push eax
mov eax, dword [esp]
mov eax, dword [eax]
mov eax, dword [eax]
call dword [eax + 0x48]
cmp dword [ebp - 4], 0x80000601
jne 0x51a435
fild dword [ebp - 0x14]
fstp qword [ebp - 0x24]
fld qword [ebp - 0x24]
fadd qword [0x66e0cc]
fstp qword [ebp - 0x2c]
fld qword [ebp - 0x2c]
call fcn.0046cf90
push eax
call fcn.0046d7eb
mov dword [ebp - 0x30], eax
mov dword [ebp - 0x34], 0
push 0
push dword [ebp - 0x34]
push dword [ebp - 0x30]
lea eax, [ebp - 0x10]
push eax
mov eax, dword [esp]
mov eax, dword [eax]
mov eax, dword [eax]
call dword [eax + 0x48]
jmp 0x51a4d4
cmp dword [ebp - 4], 0x80000401
jne 0x51a487
fild dword [ebp - 0x14]
fstp qword [ebp - 0x24]
fld qword [ebp - 0x24]
fadd qword [0x66e0cc]
fstp qword [ebp - 0x2c]
fld qword [ebp - 0x2c]
call fcn.0046cf90
push eax
call fcn.0046d7eb
mov dword [ebp - 0x30], eax
mov dword [ebp - 0x34], 0
push 0
push dword [ebp - 0x34]
push dword [ebp - 0x30]
lea eax, [ebp - 0x10]
push eax
mov eax, dword [esp]
mov eax, dword [eax]
mov eax, dword [eax]
call dword [eax + 0x48]
jmp 0x51a4d4
cmp dword [ebp - 4], reloc.WS2_32.dll_closesocket
jne 0x51a4d4
fild dword [ebp - 0x14]
fstp qword [ebp - 0x24]
fld qword [ebp - 0x24]
fadd qword [0x66e0cc]
fstp qword [ebp - 0x2c]
fld qword [ebp - 0x2c]
call fcn.0046cf90
push eax
call fcn.0046d7eb
mov dword [ebp - 0x30], eax
mov dword [ebp - 0x34], 0
push 0
push dword [ebp - 0x34]
push dword [ebp - 0x30]
lea eax, [ebp - 0x10]
push eax
mov eax, dword [esp]
mov eax, dword [eax]
mov eax, dword [eax]
call dword [eax + 0x48]
lea eax, [ebp - 0x10]
push eax
mov eax, dword [esp]
mov eax, dword [eax]
mov eax, dword [eax]
call dword [eax + 0x10]
mov dword [ebp - 0x14], eax
push reloc.oleaut32.dll_SysStringLen
push 0
push 0x51a7dd
push 1
mov ebx, 0x9dc
call fcn.005b97f0
add esp, 0x10
mov dword [ebp - 0x20], eax
mov dword [ebp - 0x24], esp
push dword [ebp - 0x1c]
push 0
push dword [ebp - 0x14]
push dword [ebp - 0x20]
push 0
push 0
xor eax, eax
call dword [sym.imp.kernel32.dll_CreateThread]
nop
nop
cmp dword [ebp - 0x24], esp
je 0x51a547
push 0x4d4
push 0x42aa273
push 6
call fcn.005b82f8
add esp, 0xc
mov dword [ebp - 0x18], eax
push 3
push dword [ebp + 0x10]
call fcn.00470b2d
mov dword [ebp - 0x24], eax
cmp dword [ebp - 0x24], 0
jne 0x51a592
fild dword [ebp + 0x10]
fstp qword [ebp - 0x24]
fld qword [ebp - 0x24]
fadd qword [0x66d8cf]
fstp qword [ebp - 0x2c]
fld qword [ebp - 0x2c]
call fcn.0046cf90
push eax
call fcn.0046d7eb
mov dword [ebp - 0x30], eax
push dword [ebp - 0x18]
push dword [ebp - 0x30]
call fcn.00474957
cmp dword [ebp - 0x18], 0
jne 0x51a5bb
push dword [ebp - 0x14]
lea eax, [ebp - 0x10]
push eax
mov eax, dword [esp]
mov eax, dword [eax]
mov eax, dword [eax]
call dword [eax + 0x14]
lea eax, [ebp - 0x10]
push eax
mov eax, dword [esp]
mov eax, dword [eax]
mov eax, dword [eax]
call dword [eax + 8]
cmp dword [ebp - 0x18], 0
mov eax, 0
setne al
push eax
push dword [ebp + 8]
call fcn.004708db
mov ebx, dword [ebp - 0x10]
push ebx
mov eax, dword [ebx]
call dword [eax]
call fcn.005b82ec
add esp, 4
mov esp, ebp
pop ebp
ret 0xc