Function at 0x5409a9
Capabilities:
Create thread

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x30
mov dword [ebp - 4], 0
mov dword [ebp - 8], 0
push 8
call fcn.0055dd8b
add esp, 4
mov dword [ebp - 0xc], eax
mov edi, eax
mov esi, 0x59ab67
lodsd eax, dword [esi]
stosd dword es:[edi], eax
lodsd eax, dword [esi]
stosd dword es:[edi], eax
mov dword [ebp - 0x10], 0
mov dword [ebp - 0x14], 0
mov dword [ebp - 0x18], 0
lea eax, [ebp + 0x18]
push eax
call fcn.0046af01
mov dword [ebp - 0x1c], eax
push 0x78
push dword [ebp - 0x1c]
call fcn.004787c9
mov dword [ebp - 0x20], eax
mov eax, dword [ebp - 0x20]
push eax
mov ebx, dword [ebp - 4]
test ebx, ebx
je 0x540a20
push ebx
call fcn.0055dd85
add esp, 4
pop eax
mov dword [ebp - 4], eax
lea eax, [ebp - 8]
mov ebx, eax
mov ecx, 1
push ecx
push ebx
mov dword [ebx], ecx
cmp ecx, 0x71
jg 0x540b07
mov ebx, dword [ebp - 4]
mov ecx, dword [ebx]
inc ecx
shl ecx, 2
add ebx, ecx
push ebx
fild dword [ebp - 8]
fstp qword [ebp - 0x20]
fld qword [ebp - 0x20]
fadd qword [0x59abbd]
fstp qword [ebp - 0x28]
fld qword [ebp - 0x28]
call fcn.00401145
dec eax
pop ebx
add ebx, eax
mov dword [ebp - 0x2c], ebx
mov ebx, dword [ebp - 0x2c]
cmp byte [ebx], 1
jne 0x540af8
push 1
push dword [ebp - 8]
lea eax, [ebp - 4]
push eax
call fcn.00540cfc
mov dword [ebp - 0x1c], eax
lea eax, [ebp - 0xc]
push eax
push 4
mov eax, 2
call fcn.0055e690
add esp, 8
mov eax, dword [ebp - 0x1c]
mov dword [ebp - 0x20], eax
mov ebx, dword [ebp - 0xc]
mov dword [ebp - 0x24], ebx
call fcn.004227cc
mov dword [ebp - 0x28], ecx
mov edi, dword [ebp - 0x24]
mov dword [edi], 1
add edi, 4
mov eax, ecx
inc eax
mov dword [edi], eax
add edi, 4
cmp edi, ebx
je 0x540ac8
mov esi, ebx
rep movsd dword es:[edi], dword [esi]
mov eax, dword [ebp - 0x28]
inc eax
shl eax, 2
add eax, 8
push eax
push dword [ebp - 0x24]
call fcn.0055dda3
add esp, 8
mov dword [ebp - 0xc], eax
mov edi, eax
add edi, 8
mov eax, dword [ebp - 0x28]
shl eax, 2
add edi, eax
mov eax, dword [ebp - 0x20]
mov dword [edi], eax
jmp 0x540afd
jmp 0x540b07
pop ebx
pop ecx
add ecx, 8
jmp 0x540a2e
add esp, 8
mov dword [ebp - 0x1c], 0
push 0
push dword [ebp - 0x1c]
mov dword [ebp - 0x20], 0
push 0
push dword [ebp - 0x20]
push 1
lea eax, [ebp - 0xc]
push eax
push dword [ebp + 0x14]
call fcn.00540e47
mov dword [ebp - 0x24], eax
mov eax, dword [ebp - 0x24]
push eax
mov ebx, dword [ebp - 0x10]
test ebx, ebx
je 0x540b47
push ebx
call fcn.0055dd85
add esp, 4
pop eax
mov dword [ebp - 0x10], eax
lea eax, [ebp - 0x10]
push eax
call fcn.0053ff8e
mov dword [ebp - 0x1c], eax
push 1
push dword [ebp - 0x1c]
push dword [ebp + 8]
call fcn.005404cf
mov dword [ebp - 0x14], eax
cmp dword [ebp - 0x14], 0
jne 0x540b7b
mov eax, 0
jmp 0x540cc8
mov dword [ebp - 0x1c], 0
push 0
push dword [ebp - 0x1c]
push 8
call fcn.0055dd8b
add esp, 4
mov dword [ebp - 0x20], eax
mov edi, eax
mov esi, 0x59ab67
lodsd eax, dword [esi]
stosd dword es:[edi], eax
lodsd eax, dword [esi]
stosd dword es:[edi], eax
push 0
lea eax, [ebp - 0x20]
push eax
lea eax, [ebp - 0x10]
push eax
push dword [ebp - 0x14]
push dword [ebp + 8]
call fcn.0046c27e
mov ebx, dword [ebp - 0x20]
push ebx
call fcn.0055dd85
add esp, 4
mov dword [ebp - 0x1c], esp
mov eax, 0
mov dword [ebp - 0x20], eax
lea eax, [ebp - 0x20]
push eax
push 0
push 0
push dword [ebp - 0x14]
push 0
push 0
push dword [ebp + 8]
call dword [sym.imp.KERNEL32.dll_CreateRemoteThread]
nop
nop
nop
nop
cmp dword [ebp - 0x1c], esp
je 0x540c08
push 6
call fcn.0055dd91
add esp, 4
mov ebx, dword [ebp + 0xc]
mov dword [ebx], eax
mov dword [ebp - 0x1c], esp
push 0xffffffff
mov ebx, dword [ebp + 0xc]
push dword [ebx]
call dword [sym.imp.KERNEL32.dll_WaitForSingleObject]
nop
nop
nop
nop
cmp dword [ebp - 0x1c], esp
je 0x540c36
push 6
call fcn.0055dd91
add esp, 4
mov dword [ebp - 0x1c], esp
lea eax, [ebp - 0x18]
push eax
mov ebx, dword [ebp + 0xc]
push dword [ebx]
call dword [sym.imp.KERNEL32.dll_GetExitCodeThread]
nop
nop
nop
nop
cmp dword [ebp - 0x1c], esp
je 0x540c5e
push 6
call fcn.0055dd91
add esp, 4
mov dword [ebp - 0x1c], 0
push 0
push dword [ebp - 0x1c]
push dword [ebp - 0x14]
push dword [ebp + 8]
call fcn.00462004
cmp dword [ebp + 0x10], 0
jne 0x540c92
mov ebx, dword [ebp + 0xc]
cmp dword [ebx], 0
je 0x540c92
mov eax, 1
jmp 0x540c94
xor eax, eax
test eax, eax
je 0x540cc0
mov dword [ebp - 0x1c], esp
mov ebx, dword [ebp + 0xc]
push dword [ebx]
call dword [sym.imp.KERNEL32.dll_CloseHandle]
nop
nop
nop
nop
cmp dword [ebp - 0x1c], esp
je 0x540cc0
push 6
call fcn.0055dd91
add esp, 4
mov eax, dword [ebp - 0x18]
jmp 0x540cc8
push eax
mov ebx, dword [ebp - 4]
test ebx, ebx
je 0x540cd9
push ebx
call fcn.0055dd85
add esp, 4
mov ebx, dword [ebp - 0xc]
push ebx
call fcn.0055dd85
add esp, 4
mov ebx, dword [ebp - 0x10]
test ebx, ebx
je 0x540cf5
push ebx
call fcn.0055dd85
add esp, 4
pop eax
mov esp, ebp
pop ebp
ret 0x88