Function at 0x410500
Capabilities:
Create process on windows

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x4df038
mov eax, dword fs:[0]
push eax
sub esp, 0x48
mov eax, dword [0x524a60]
xor eax, ebp
mov dword [ebp - 0x10], eax
push ebx
push esi
push edi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
lea eax, [ebp - 0x44]
push eax
call fcn.0042f710
mov eax, dword [ebp - 0x44]
add esp, 4
cmp dword [eax - 0xc], 0
jl 0x410581
push str.__LiteGameBoxTemp__
push eax
call fcn.004b125d
mov ecx, eax
add esp, 8
mov eax, dword [ebp - 0x44]
test ecx, ecx
je 0x410581
sub ecx, eax
sar ecx, 1
test ecx, ecx
jle 0x410581
lea edx, [eax - 0x10]
or eax, 0xffffffff
lock xadd dword [edx + 0xc], eax
dec eax
test eax, eax
jg 0x410577
mov ecx, dword [edx]
push edx
mov eax, dword [ecx]
call dword [eax + 4]
mov eax, 1
jmp 0x41077e
or ebx, 0xffffffff
lea edx, [eax - 0x10]
mov eax, ebx
lock xadd dword [edx + 0xc], eax
dec eax
test eax, eax
jg 0x41059b
mov ecx, dword [edx]
push edx
mov eax, dword [ecx]
call dword [eax + 4]
lea eax, [ebp - 0x50]
push eax
call fcn.0042f710
push 0
push str.__LiteGameBoxTemp__
push dword [ebp - 0x50]
lea eax, [ebp - 0x48]
mov dword [ebp - 4], 0
push eax
call fcn.0042e3f0
add esp, 0x14
mov eax, dword [ebp - 0x48]
mov byte [ebp - 4], 1
cmp dword [eax - 0xc], 0
jne 0x4105e5
push str._EnsureIsRunningTempExe__copy_to_temp_path_failed.
call fcn.00433e50
add esp, 4
mov esi, 1
jmp 0x41073f
call fcn.004045a0
mov ecx, eax
test ecx, ecx
je 0x41079a
mov eax, dword [ecx]
call dword [eax + 0xc]
add eax, 0x10
mov dword [ebp - 0x44], eax
xor eax, eax
mov dword [ebp - 0x18], 0
mov dword [ebp - 0x14], 7
mov word [ebp - 0x28], ax
push 0xa
push str.target_dir
lea ecx, [ebp - 0x40]
mov byte [ebp - 4], 3
mov dword [ebp - 0x30], eax
mov dword [ebp - 0x2c], 7
mov word [ebp - 0x40], ax
call fcn.004061e0
mov ecx, dword [0x52a958]
lea eax, [ebp - 0x28]
push eax
lea eax, [ebp - 0x40]
mov byte [ebp - 4], 4
push eax
call fcn.004057f0
mov ecx, eax
call fcn.00437140
lea ecx, [ebp - 0x40]
mov byte [ebp - 4], 3
call fcn.004039d0
cmp dword [ebp - 0x18], 0
je 0x41067a
cmp dword [ebp - 0x14], 8
lea eax, [ebp - 0x28]
lea ecx, [ebp - 0x44]
cmovae eax, dword [ebp - 0x28]
push eax
call fcn.0040bd50
jmp 0x4106b2
lea eax, [ebp - 0x54]
push eax
call fcn.0042ecf0
add esp, 4
push dword [eax]
lea ecx, [ebp - 0x44]
mov byte [ebp - 4], 5
call fcn.0040bd50
mov edx, dword [ebp - 0x54]
mov eax, ebx
mov byte [ebp - 4], 3
add edx, 0xfffffff0
lock xadd dword [edx + 0xc], eax
dec eax
test eax, eax
jg 0x4106b2
mov ecx, dword [edx]
push edx
mov eax, dword [ecx]
call dword [eax + 4]
mov ecx, dword [0x52a958]
call fcn.00418d30
mov eax, dword [eax]
sub eax, 0x10
push eax
call fcn.00404230
add eax, 0x10
mov dword [ebp - 0x4c], eax
mov edi, dword [ebp - 0x44]
lea eax, [ebp - 0x4c]
push edi
push str.___target_dir__s_
push eax
mov byte [ebp - 4], 6
call fcn.0040c1a0
mov esi, dword [ebp - 0x4c]
add esp, 0x10
push 5
push 0
push esi
push dword [ebp - 0x48]
push str.open
push 0
call dword [sym.imp.SHELL32.dll_ShellExecuteW]
mov byte [ebp - 4], 3
add esi, 0xfffffff0
mov eax, ebx
lock xadd dword [esi + 0xc], eax
dec eax
test eax, eax
jg 0x41071a
mov ecx, dword [esi]
push esi
mov eax, dword [ecx]
call dword [eax + 4]
lea ecx, [ebp - 0x28]
call fcn.004039d0
mov byte [ebp - 4], 1
add edi, 0xfffffff0
mov eax, ebx
lock xadd dword [edi + 0xc], eax
dec eax
test eax, eax
jg 0x41073d
mov ecx, dword [edi]
push edi
mov eax, dword [ecx]
call dword [eax + 4]
xor esi, esi
mov edx, dword [ebp - 0x48]
mov eax, ebx
mov byte [ebp - 4], 0
add edx, 0xfffffff0
lock xadd dword [edx + 0xc], eax
dec eax
test eax, eax
jg 0x41075d
mov ecx, dword [edx]
push edx
mov eax, dword [ecx]
call dword [eax + 4]
mov eax, dword [ebp - 0x50]
mov dword [ebp - 4], 0xffffffff
add eax, 0xfffffff0
lock xadd dword [eax + 0xc], ebx
dec ebx
test ebx, ebx
jg 0x41077c
mov ecx, dword [eax]
push eax
mov edx, dword [ecx]
call dword [edx + 4]
mov eax, esi
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 0x10]
xor ecx, ebp
call fcn.004a1588
mov esp, ebp
pop ebp
ret
push 0x80004005
call fcn.00403f90
int3