Function at 0x50654c
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.00645a7b
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], 0xa13bc0
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.004f2d74
mov dword [ebp - 4], eax
cmp dword [ebp - 4], 0x80000006
jne 0x5065f1
lea eax, [ebp - 8]
push eax
push dword [ebp + 0x10]
call fcn.004fd814
push reloc.oleaut32.dll_SysStringLen
push 0
push dword [ebp - 8]
push 1
mov ebx, 0x9dc
call fcn.00647990
add esp, 0x10
mov dword [ebp - 0xc], eax
jmp 0x506620
cmp dword [ebp - 4], 0x80000301
jne 0x50660e
push dword [ebp + 0x10]
call fcn.004efb10
mov dword [ebp - 0xc], eax
jmp 0x506620
push 0
push dword [ebp + 8]
call fcn.004efb2c
jmp 0x50687d
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 0x5067d0
fild dword [ebp - 0x14]
fstp qword [ebp - 0x28]
fld qword [ebp - 0x28]
fsub qword [0xa13374]
fstp qword [ebp - 0x30]
fld qword [ebp - 0x30]
fmul qword [0xa132ac]
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.004ef9d0
mov dword [ebp - 0x18], eax
push dword [ebp - 0x18]
call fcn.004f2d74
mov dword [ebp - 4], eax
push dword [ebp - 0x18]
call fcn.004efb10
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 0x506723
fild dword [ebp - 0x18]
fstp qword [ebp - 0x28]
fld qword [ebp - 0x28]
fadd qword [0xa139cc]
fstp qword [ebp - 0x30]
fld qword [ebp - 0x30]
call fcn.004ef9d0
push eax
call fcn.004efb10
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 0x5067c7
cmp dword [ebp - 4], 0x80000401
jne 0x506775
fild dword [ebp - 0x18]
fstp qword [ebp - 0x28]
fld qword [ebp - 0x28]
fadd qword [0xa139cc]
fstp qword [ebp - 0x30]
fld qword [ebp - 0x30]
call fcn.004ef9d0
push eax
call fcn.004efb10
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 0x5067c7
cmp dword [ebp - 4], reloc.WS2_32.dll_closesocket
jne 0x5067c7
fild dword [ebp - 0x18]
fstp qword [ebp - 0x28]
fld qword [ebp - 0x28]
fadd qword [0xa139cc]
fstp qword [ebp - 0x30]
fld qword [ebp - 0x30]
call fcn.004ef9d0
push eax
call fcn.004efb10
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 0x5067c7
pop ebx
pop ecx
pop edx
inc ecx
jmp 0x506659
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 0x506a8e
push 1
mov ebx, 0x9dc
call fcn.00647990
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 0x506846
push 0x4e3
push 0x42aa2cf
push 6
call fcn.00645a6f
add esp, 0xc
mov dword [ebp - 0x1c], eax
cmp dword [ebp - 0x1c], 0
jne 0x506872
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.004f3428
mov ebx, dword [ebp - 0x10]
push ebx
mov eax, dword [ebx]
call dword [eax]
call fcn.00645a87
add esp, 4
mov esp, ebp
pop ebp
ret 0xc