Function at 0x51a83a
Capabilities:
Create thread

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x48
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
mov dword [ebp - 0x20], 0
push dword [ebp + 0x10]
call fcn.00473b9e
mov dword [ebp - 4], eax
cmp dword [ebp - 4], 0x80000006
jne 0x51a8df
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 0x51a90e
cmp dword [ebp - 4], 0x80000301
jne 0x51a8fc
push dword [ebp + 0x10]
call fcn.0046d7eb
mov dword [ebp - 0xc], eax
jmp 0x51a90e
push 0
push dword [ebp + 8]
call fcn.004708db
jmp 0x51ab66
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 - 0x24], 0
push 0
push dword [ebp - 0x24]
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 dword [ebp + 0xc]
lea eax, [ebp - 0x14]
mov ebx, eax
mov ecx, 2
pop edx
push edx
push ecx
push ebx
mov dword [ebx], ecx
cmp ecx, edx
jg 0x51aab9
fild dword [ebp - 0x14]
fstp qword [ebp - 0x28]
fld qword [ebp - 0x28]
fsub qword [0x66d8e2]
fstp qword [ebp - 0x30]
fld qword [ebp - 0x30]
fmul qword [0x66d8c7]
fstp qword [ebp - 0x38]
fild dword [ebp + 0x10]
fstp qword [ebp - 0x40]
fld qword [ebp - 0x40]
fadd qword [ebp - 0x38]
fstp qword [ebp - 0x48]
fld qword [ebp - 0x48]
call fcn.0046cf90
mov dword [ebp - 0x18], eax
push dword [ebp - 0x18]
call fcn.00473b9e
mov dword [ebp - 4], eax
push dword [ebp - 0x18]
call fcn.0046d7eb
mov dword [ebp - 0x24], eax
mov dword [ebp - 0x28], 0
push 0
push dword [ebp - 0x28]
push dword [ebp - 0x24]
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 0x51aa11
fild dword [ebp - 0x18]
fstp qword [ebp - 0x28]
fld qword [ebp - 0x28]
fadd qword [0x66e0cc]
fstp qword [ebp - 0x30]
fld qword [ebp - 0x30]
call fcn.0046cf90
push eax
call fcn.0046d7eb
mov dword [ebp - 0x34], eax
mov dword [ebp - 0x38], 0
push 0
push dword [ebp - 0x38]
push dword [ebp - 0x34]
lea eax, [ebp - 0x10]
push eax
mov eax, dword [esp]
mov eax, dword [eax]
mov eax, dword [eax]
call dword [eax + 0x48]
jmp 0x51aab0
cmp dword [ebp - 4], 0x80000401
jne 0x51aa63
fild dword [ebp - 0x18]
fstp qword [ebp - 0x28]
fld qword [ebp - 0x28]
fadd qword [0x66e0cc]
fstp qword [ebp - 0x30]
fld qword [ebp - 0x30]
call fcn.0046cf90
push eax
call fcn.0046d7eb
mov dword [ebp - 0x34], eax
mov dword [ebp - 0x38], 0
push 0
push dword [ebp - 0x38]
push dword [ebp - 0x34]
lea eax, [ebp - 0x10]
push eax
mov eax, dword [esp]
mov eax, dword [eax]
mov eax, dword [eax]
call dword [eax + 0x48]
jmp 0x51aab0
cmp dword [ebp - 4], reloc.WS2_32.dll_closesocket
jne 0x51aab0
fild dword [ebp - 0x18]
fstp qword [ebp - 0x28]
fld qword [ebp - 0x28]
fadd qword [0x66e0cc]
fstp qword [ebp - 0x30]
fld qword [ebp - 0x30]
call fcn.0046cf90
push eax
call fcn.0046d7eb
mov dword [ebp - 0x34], eax
mov dword [ebp - 0x38], 0
push 0
push dword [ebp - 0x38]
push dword [ebp - 0x34]
lea eax, [ebp - 0x10]
push eax
mov eax, dword [esp]
mov eax, dword [eax]
mov eax, dword [eax]
call dword [eax + 0x48]
pop ebx
pop ecx
pop edx
inc ecx
jmp 0x51a947
add esp, 0xc
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 - 0x18], eax
push reloc.oleaut32.dll_SysStringLen
push 0
push 0x51a7dd
push 1
mov ebx, 0x9dc
call fcn.005b97f0
add esp, 0x10
mov dword [ebp - 0x24], eax
mov dword [ebp - 0x28], esp
push dword [ebp - 0x20]
push 0
push dword [ebp - 0x18]
push dword [ebp - 0x24]
push 0
push 0
xor eax, eax
call dword [sym.imp.kernel32.dll_CreateThread]
nop
nop
cmp dword [ebp - 0x28], esp
je 0x51ab2f
push 0x4e3
push 0x42aa2cf
push 6
call fcn.005b82f8
add esp, 0xc
mov dword [ebp - 0x1c], eax
cmp dword [ebp - 0x1c], 0
jne 0x51ab5b
push dword [ebp - 0x18]
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]
push dword [ebp - 0x1c]
push dword [ebp + 8]
call fcn.00471a67
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