Function at 0x412528
Capabilities:
Create thread
Inject thread
Resume thread

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x20
mov dword [ebp - 4], 0
mov dword [ebp - 8], 0
mov dword [ebp - 0xc], 0
cmp dword [ebp + 8], 0xffffffff
jne 0x412577
mov dword [ebp - 0x10], esp
call dword [sym.imp.KERNEL32.dll_GetCurrentProcess]
nop
nop
nop
nop
cmp dword [ebp - 0x10], esp
je 0x41256f
push 6
call fcn.004d8e21
add esp, 4
mov dword [ebp - 4], eax
jmp 0x4125a6
mov dword [ebp - 0x10], esp
push dword [ebp + 8]
push 0
push 0x1f0fff
call dword [sym.imp.KERNEL32.dll_OpenProcess]
nop
nop
nop
nop
cmp dword [ebp - 0x10], esp
je 0x4125a3
push 6
call fcn.004d8e21
add esp, 4
mov dword [ebp - 4], eax
cmp dword [ebp - 4], 0
je 0x412799
push VariantCopy
push 0
mov ebx, dword [ebp + 0xc]
mov eax, dword [ebx]
test eax, eax
jne 0x4125c5
mov eax, 0x5092f0
push eax
push 1
mov ebx, 0x194
call fcn.004da310
add esp, 0x10
mov dword [ebp - 0x18], eax
fild dword [ebp - 0x18]
fstp qword [ebp - 0x18]
fld qword [ebp - 0x18]
fadd qword [0x50d214]
fstp qword [ebp - 0x20]
fld qword [ebp - 0x20]
call fcn.00401feb
mov dword [ebp - 8], eax
mov dword [ebp - 0x10], esp
push 4
push 0x1000
push dword [ebp - 8]
push 0
push dword [ebp - 4]
call dword [sym.imp.KERNEL32.dll_VirtualAllocEx]
nop
nop
nop
nop
cmp dword [ebp - 0x10], esp
je 0x41262c
push 6
call fcn.004d8e21
add esp, 4
mov ebx, dword [ebp + 0x10]
mov dword [ebx], eax
mov dword [ebp - 0x10], esp
push 0
push dword [ebp - 8]
mov ebx, dword [ebp + 0xc]
mov eax, dword [ebx]
test eax, eax
je 0x412648
add eax, 8
push eax
mov ebx, dword [ebp + 0x10]
push dword [ebx]
push dword [ebp - 4]
call dword [sym.imp.KERNEL32.dll_WriteProcessMemory]
nop
nop
nop
nop
cmp dword [ebp - 0x10], esp
je 0x41266d
push 6
call fcn.004d8e21
add esp, 4
cmp dword [ebp - 4], 0xffffffff
jne 0x412686
mov ebx, dword [ebp + 0x10]
push dword [ebx]
call fcn.004127a9
jmp 0x412734
mov dword [ebp - 0x10], esp
push 0
push 4
push 0
mov ebx, dword [ebp + 0x10]
push dword [ebx]
push 0
push 0
push dword [ebp - 4]
call dword [sym.imp.KERNEL32.dll_CreateRemoteThread]
nop
nop
nop
nop
cmp dword [ebp - 0x10], esp
je 0x4126c6
push 6
call fcn.004d8e21
add esp, 4
mov dword [ebp - 0xc], eax
mov dword [ebp - 0x10], esp
push dword [ebp - 0xc]
call dword [sym.imp.KERNEL32.dll_ResumeThread]
nop
nop
nop
nop
cmp dword [ebp - 0x10], esp
je 0x4126eb
push 6
call fcn.004d8e21
add esp, 4
mov dword [ebp - 0x10], esp
push 0xffffffff
push dword [ebp - 0xc]
call dword [sym.imp.KERNEL32.dll_WaitForSingleObject]
nop
nop
nop
nop
cmp dword [ebp - 0x10], esp
je 0x412712
push 6
call fcn.004d8e21
add esp, 4
mov dword [ebp - 0x10], esp
push dword [ebp - 0xc]
call dword [sym.imp.KERNEL32.dll_CloseHandle]
nop
nop
nop
nop
cmp dword [ebp - 0x10], esp
je 0x412734
push 6
call fcn.004d8e21
add esp, 4
cmp dword [ebp + 0x14], 0
jne 0x41276d
mov dword [ebp - 0x10], esp
push 0x8000
push dword [ebp - 8]
mov ebx, dword [ebp + 0x10]
push dword [ebx]
push dword [ebp - 4]
call dword [sym.imp.KERNEL32.dll_VirtualFreeEx]
nop
nop
nop
nop
cmp dword [ebp - 0x10], esp
je 0x41276d
push 6
call fcn.004d8e21
add esp, 4
mov dword [ebp - 0x10], esp
push dword [ebp - 4]
call dword [sym.imp.KERNEL32.dll_CloseHandle]
nop
nop
nop
nop
cmp dword [ebp - 0x10], esp
je 0x41278f
push 6
call fcn.004d8e21
add esp, 4
mov eax, 1
jmp 0x4127a3
mov eax, 0
jmp 0x4127a3
mov esp, ebp
pop ebp
ret 0x10