Function at 0x412530
Capabilities:
Create process on windows

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x452f6c
mov eax, dword fs:[0]
push eax
sub esp, 0x2ec
mov eax, dword [0x476040]
xor eax, ebp
mov dword [ebp - 0x14], eax
push ebx
push esi
push edi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov dword [ebp - 0x10], esp
mov dword [ebp - 0x1f0], edx
mov dword [ebp - 0x1f4], ecx
mov esi, dword [ebp + 8]
mov dword [ebp - 0x1f8], esi
mov edi, dword [ebp + 0x10]
mov dword [ebp - 0x1e8], edi
mov dword [ebp - 0x1e0], 0
mov dword [ebp - 4], 0
lea ecx, [ebp - 0x8c]
call fcn.0040d660
mov byte [ebp - 4], 1
lea eax, [ebp - 0x2c]
mov dword [ebp - 0x1e4], eax
mov byte [ebp - 4], 2
mov eax, str.PsfRuntime
mov dword [ebp - 0x204], eax
mov ecx, 0xa
mov dword [ebp - 0x200], ecx
mov byte [ebp - 4], 3
xorps xmm0, xmm0
movups xmmword [ebp - 0x2c], xmm0
mov dword [ebp - 0x1c], 0
mov dword [ebp - 0x18], 0
mov dword [ebp - 0x20c], eax
mov dword [ebp - 0x208], ecx
push ecx
push eax
lea ecx, [ebp - 0x2c]
call fcn.00404650
mov dword [ebp - 0x1e0], 0x20
mov eax, 0x20
mov dword [ebp - 0x1e0], eax
and eax, 0xffffffdf
mov dword [ebp - 0x1e0], eax
mov dword [ebp - 4], 2
or eax, 0x10
mov dword [ebp - 0x1e0], eax
mov byte [ebp - 4], 1
and eax, 0xffffffef
mov dword [ebp - 0x1e0], eax
mov byte [ebp - 4], 4
lea eax, [ebp - 0x2c]
push eax
lea edx, [ebp - 0x8c]
lea ecx, [ebp - 0x44]
call fcn.0040bdf0
add esp, 4
mov byte [ebp - 4], 7
mov byte [ebp - 4], 6
lea ecx, [ebp - 0x2c]
call fcn.00404310
push ecx
lea ecx, [ebp - 0x44]
call fcn.00419930
lea ecx, [ebp - 0x44]
call fcn.0040c810
test al, al
je 0x412e29
cmp byte [ebp + 0x14], 0
jne 0x412e29
lea ecx, [ebp - 0x1dc]
call fcn.00412f00
mov byte [ebp - 4], 0xa
lea eax, [ebp - 0x44]
cmp dword [ebp - 0x30], 7
cmova eax, dword [ebp - 0x44]
push eax
call dword [sym.imp.KERNEL32.dll_LoadLibraryW]
call dword [sym.imp.PsfRuntime32.dll__PSFQueryPackageRootPath_0]
mov dword [ebp - 0x1e4], eax
push ecx
lea eax, [ebp - 0x1e4]
push eax
lea ecx, [ebp - 0xd4]
call fcn.00419590
mov byte [ebp - 4], 0xb
push 0
call dword [sym.imp.PsfRuntime32.dll__PSFQueryCurrentAppLaunchConfig_4]
mov esi, eax
mov dword [ebp - 0x1e4], esi
test esi, esi
je 0x4127be
mov eax, dword [ebp - 0x1f8]
cmp dword [eax + 0x10], 0
jne 0x412709
lea eax, [ebp - 0x8c]
cmp dword [ebp - 0x78], 7
cmova eax, dword [ebp - 0x8c]
push eax
lea ecx, [ebp - 0x5c]
call fcn.00404200
mov byte [ebp - 4], 0xc
mov esi, dword [ebp - 0x1e0]
or esi, 1
jmp 0x412725
push eax
lea ecx, [ebp - 0xec]
call fcn.00404240
mov dword [ebp - 4], 0xd
mov esi, dword [ebp - 0x1e0]
or esi, 2
mov dword [ebp - 0x1e0], esi
push ecx
push eax
lea ecx, [ebp - 0x2c]
call fcn.004193b0
mov dword [ebp - 4], 0xe
lea eax, [ebp - 0xd4]
push eax
lea eax, [ebp - 0x2c]
push eax
mov esi, dword [ebp - 0x1e4]
push esi
lea ecx, [ebp - 0x1dc]
call fcn.0040fe10
mov dword [ebp - 4], 0xf
mov byte [ebp - 4], 0xd
lea ecx, [ebp - 0x2c]
call fcn.00404310
mov dword [ebp - 4], 0xc
mov eax, dword [ebp - 0x1e0]
test al, 2
je 0x412797
and eax, 0xfffffffd
mov dword [ebp - 0x1e0], eax
lea ecx, [ebp - 0xec]
call fcn.00404310
mov eax, dword [ebp - 0x1e0]
mov dword [ebp - 4], 0xb
test al, 1
je 0x4127b3
and eax, 0xfffffffe
mov dword [ebp - 0x1e0], eax
lea ecx, [ebp - 0x5c]
call fcn.00404310
lea ecx, [ebp - 0x1dc]
call fcn.00410650
lea ecx, [ebp - 0xa4]
call fcn.004206a0
mov byte [ebp - 4], 0x10
test esi, esi
je 0x412815
mov eax, dword [esi]
mov esi, dword [eax + 0x1c]
push str.workingDirectory
mov ecx, esi
call dword [0x45827c]
mov ecx, dword [ebp - 0x1e4]
call esi
test eax, eax
je 0x412815
mov ecx, eax
call fcn.0040cf40
mov edi, eax
mov ecx, dword [edi]
mov esi, dword [ecx + 0x20]
push 0
mov ecx, esi
call dword [0x45827c]
mov ecx, edi
call esi
mov esi, eax
mov edi, dword [ebp - 0x1e8]
jmp 0x412817
xor esi, esi
mov dword [ebp - 0x1e8], esi
push ecx
push dword [ebp - 0x1f4]
lea ecx, [ebp - 0x74]
call fcn.004193b0
mov byte [ebp - 4], 0x11
lea eax, [ebp - 0x2c]
push eax
lea ecx, [ebp - 0x74]
call fcn.0040bd20
mov byte [ebp - 4], 0x12
push eax
mov edx, 0x465950
lea ecx, [ebp - 0xec]
call fcn.00419890
mov byte [ebp - 4], 0x13
push 0x465ba8
mov edx, eax
lea ecx, [ebp - 0x5c]
call fcn.00419a10
mov byte [ebp - 4], 0x14
push dword [ebp - 0x1f0]
mov edx, eax
lea ecx, [ebp - 0xbc]
call fcn.00419b20
add esp, 0xc
mov byte [ebp - 4], 0x16
lea ecx, [ebp - 0x5c]
call fcn.00404310
mov byte [ebp - 4], 0x17
lea ecx, [ebp - 0xec]
call fcn.00404310
mov byte [ebp - 4], 0x19
mov byte [ebp - 4], 0x18
lea ecx, [ebp - 0x2c]
call fcn.00404310
mov dword [ebp - 0x260], 0x44
push 0x40
push 0
lea eax, [ebp - 0x25c]
push eax
call fcn.00436700
add esp, 0xc
mov dword [ebp - 0x234], 1
mov ax, word [ebp + 0xc]
mov word [ebp - 0x230], ax
test esi, esi
je 0x412933
push ecx
lea eax, [ebp - 0x1e8]
push eax
lea ecx, [ebp - 0x2c]
call fcn.00419590
mov byte [ebp - 4], 0x1a
mov esi, dword [ebp - 0x1e0]
or esi, 4
mov dword [ebp - 0x1e0], esi
lea eax, [ebp - 0x2c]
push eax
lea edx, [ebp - 0xd4]
lea ecx, [ebp - 0x5c]
call fcn.0040bdf0
add esp, 4
mov edx, eax
mov dword [ebp - 4], 0x1b
or esi, 8
mov dword [ebp - 0x1e0], esi
cmp dword [edx + 0x14], 7
jbe 0x412954
mov edx, dword [edx]
jmp 0x412954
cmp dword [ebp - 0x94], 0
jne 0x412940
xor edx, edx
jmp 0x412954
lea edx, [ebp - 0xa4]
cmp dword [ebp - 0x90], 7
cmova edx, dword [ebp - 0xa4]
mov esi, dword [edi + 0x10]
test esi, esi
jne 0x41295f
xor edi, edi
jmp 0x412967
cmp dword [edi + 0x14], 7
jbe 0x412967
mov edi, dword [edi]
neg esi
sbb esi, esi
and esi, 0x400
mov dword [ebp - 0x1e8], esi
lea ecx, [ebp - 0xbc]
cmp dword [ebp - 0xa8], 7
cmova ecx, dword [ebp - 0xbc]
lea eax, [ebp - 0x74]
cmp dword [ebp - 0x60], 7
cmova eax, dword [ebp - 0x74]
lea esi, [ebp - 0x21c]
push esi
lea esi, [ebp - 0x260]
push esi
push edx
push edi
mov esi, dword [ebp - 0x1e8]
push esi
push 1
push 0
push 0
push ecx
push eax
call dword [sym.imp.KERNEL32.dll_CreateProcessW]
mov esi, eax
mov dword [ebp - 4], 0x1a
mov eax, dword [ebp - 0x1e0]
test al, 8
je 0x4129f0
and eax, 0xfffffff7
mov dword [ebp - 0x1e0], eax
mov dword [ebp - 4], 0x1c
mov byte [ebp - 4], 0x1a
lea ecx, [ebp - 0x5c]
call fcn.00404310
mov eax, dword [ebp - 0x1e0]
mov dword [ebp - 4], 0x18
test al, 4
je 0x412a14
and eax, 0xfffffffb
mov dword [ebp - 0x1e0], eax
mov byte [ebp - 4], 0x1d
mov byte [ebp - 4], 0x18
lea ecx, [ebp - 0x2c]
call fcn.00404310
test esi, esi
jne 0x412be7
push ecx
lea ecx, [ebp - 0x2f8]
call fcn.00413d30
mov byte [ebp - 4], 0x1e
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov edi, eax
mov ecx, dword [0x476aa0]
mov esi, dword [ecx + 8]
push edi
lea eax, [ebp - 0x5c]
push eax
mov ecx, esi
call dword [0x45827c]
mov ecx, 0x476aa0
call esi
mov byte [ebp - 4], 0x1f
mov ecx, eax
cmp dword [eax + 0x14], 0xf
jbe 0x412a5f
mov ecx, dword [eax]
mov eax, dword [eax + 0x10]
mov dword [ebp - 0x1fc], ecx
mov dword [ebp - 0x1f8], eax
push eax
push ecx
lea ecx, [ebp - 0x2c]
call fcn.0040ce70
add esp, 8
mov byte [ebp - 4], 0x21
lea ecx, [ebp - 0x5c]
call fcn.00417ba0
push 0
mov eax, dword [ebp - 0x1c]
add eax, 0xfffffffd
push eax
lea ecx, [ebp - 0x2c]
call fcn.00404160
lea ecx, [ebp - 0x2f8]
call fcn.00419c20
mov esi, eax
lea eax, [ebp - 0x5c]
push eax
lea ecx, [ebp - 0x74]
call fcn.0040bd20
mov byte [ebp - 4], 0x22
mov ecx, dword [eax + 0x10]
cmp dword [eax + 0x14], 7
jbe 0x412ac0
mov eax, dword [eax]
push ecx
mov edx, eax
mov ecx, esi
call fcn.0041c510
mov edx, str.__n__Error:
mov ecx, eax
call fcn.00419e60
lea edx, [ebp - 0x2c]
cmp dword [ebp - 0x18], 7
cmova edx, dword [ebp - 0x2c]
push dword [ebp - 0x1c]
mov ecx, eax
call fcn.0041c510
add esp, 8
mov edx, 0x46534c
mov ecx, eax
call fcn.00419e60
push edi
mov ecx, eax
call fcn.00413f90
mov edx, 0x465338
mov ecx, eax
call fcn.00419e60
mov byte [ebp - 4], 0x23
mov byte [ebp - 4], 0x21
lea ecx, [ebp - 0x5c]
call fcn.00404310
lea eax, [ebp - 0xec]
push eax
lea ecx, [ebp - 0x2f8]
call fcn.00413c20
mov byte [ebp - 4], 0x24
cmp dword [eax + 0x14], 7
jbe 0x412b3c
mov eax, dword [eax]
push eax
call dword [sym.imp.PsfRuntime32.dll__PSFReportError_4]
mov byte [ebp - 4], 0x21
lea ecx, [ebp - 0xec]
call fcn.00404310
mov byte [ebp - 4], 0x1e
lea ecx, [ebp - 0x2c]
call fcn.00404310
mov byte [ebp - 4], 0x18
lea ecx, [ebp - 0x2f8]
call fcn.00413150
mov byte [ebp - 4], 0x11
lea ecx, [ebp - 0xbc]
call fcn.00404310
mov byte [ebp - 4], 0x25
mov byte [ebp - 4], 0x10
lea ecx, [ebp - 0x74]
call fcn.00404310
mov byte [ebp - 4], 0xb
lea ecx, [ebp - 0xa4]
call fcn.00404310
mov byte [ebp - 4], 0x26
mov byte [ebp - 4], 0xa
lea ecx, [ebp - 0xd4]
call fcn.00404310
mov byte [ebp - 4], 6
lea ecx, [ebp - 0x1dc]
call fcn.00413040
mov byte [ebp - 4], 0x27
mov byte [ebp - 4], 1
lea ecx, [ebp - 0x44]
call fcn.00404310
mov byte [ebp - 4], 0x28
mov byte [ebp - 4], 0
lea ecx, [ebp - 0x8c]
call fcn.00404310
mov eax, edi
jmp 0x412edf
push 0xffffffffffffffff
push dword [ebp - 0x21c]
call dword [sym.imp.KERNEL32.dll_WaitForSingleObject]
test eax, eax
je 0x412d01
cmp eax, 0xffffffff
je 0x412c7f
mov byte [ebp - 4], 0x11
lea ecx, [ebp - 0xbc]
call fcn.00404310
mov byte [ebp - 4], 0x2d
mov byte [ebp - 4], 0x10
lea ecx, [ebp - 0x74]
call fcn.00404310
mov byte [ebp - 4], 0xb
lea ecx, [ebp - 0xa4]
call fcn.00404310
mov byte [ebp - 4], 0x2e
mov byte [ebp - 4], 0xa
lea ecx, [ebp - 0xd4]
call fcn.00404310
mov byte [ebp - 4], 6
lea ecx, [ebp - 0x1dc]
call fcn.00413040
mov byte [ebp - 4], 0x2f
mov byte [ebp - 4], 1
lea ecx, [ebp - 0x44]
call fcn.00404310
mov byte [ebp - 4], 0x30
mov byte [ebp - 4], 0
lea ecx, [ebp - 0x8c]
call fcn.00404310
mov eax, 6
jmp 0x412edf
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov esi, eax
mov byte [ebp - 4], 0x11
lea ecx, [ebp - 0xbc]
call fcn.00404310
mov byte [ebp - 4], 0x29
mov byte [ebp - 4], 0x10
lea ecx, [ebp - 0x74]
call fcn.00404310
mov byte [ebp - 4], 0xb
lea ecx, [ebp - 0xa4]
call fcn.00404310
mov byte [ebp - 4], 0x2a
mov byte [ebp - 4], 0xa
lea ecx, [ebp - 0xd4]
call fcn.00404310
mov byte [ebp - 4], 6
lea ecx, [ebp - 0x1dc]
call fcn.00413040
mov byte [ebp - 4], 0x2b
mov byte [ebp - 4], 1
lea ecx, [ebp - 0x44]
call fcn.00404310
mov byte [ebp - 4], 0x2c
mov byte [ebp - 4], 0
lea ecx, [ebp - 0x8c]
call fcn.00404310
mov eax, esi
jmp 0x412edf
lea ecx, [ebp - 0x1dc]
call fcn.004106c0
lea eax, [ebp - 0x1ec]
push eax
push dword [ebp - 0x21c]
call dword [sym.imp.KERNEL32.dll_GetExitCodeProcess]
test eax, eax
jne 0x412da9
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov esi, eax
mov byte [ebp - 4], 0x11
lea ecx, [ebp - 0xbc]
call fcn.00404310
mov byte [ebp - 4], 0x31
mov byte [ebp - 4], 0x10
lea ecx, [ebp - 0x74]
call fcn.00404310
mov byte [ebp - 4], 0xb
lea ecx, [ebp - 0xa4]
call fcn.00404310
mov byte [ebp - 4], 0x32
mov byte [ebp - 4], 0xa
lea ecx, [ebp - 0xd4]
call fcn.00404310
mov byte [ebp - 4], 6
lea ecx, [ebp - 0x1dc]
call fcn.00413040
mov byte [ebp - 4], 0x33
mov byte [ebp - 4], 1
lea ecx, [ebp - 0x44]
call fcn.00404310
mov byte [ebp - 4], 0x34
mov byte [ebp - 4], 0
lea ecx, [ebp - 0x8c]
call fcn.00404310
mov eax, esi
jmp 0x412edf
mov esi, dword [ebp - 0x1ec]
mov byte [ebp - 4], 0x11
lea ecx, [ebp - 0xbc]
call fcn.00404310
mov byte [ebp - 4], 0x35
mov byte [ebp - 4], 0x10
lea ecx, [ebp - 0x74]
call fcn.00404310
mov byte [ebp - 4], 0xb
lea ecx, [ebp - 0xa4]
call fcn.00404310
mov byte [ebp - 4], 0x36
mov byte [ebp - 4], 0xa
lea ecx, [ebp - 0xd4]
call fcn.00404310
mov byte [ebp - 4], 6
lea ecx, [ebp - 0x1dc]
call fcn.00413040
mov byte [ebp - 4], 0x37
mov byte [ebp - 4], 1
lea ecx, [ebp - 0x44]
call fcn.00404310
mov byte [ebp - 4], 0x38
mov byte [ebp - 4], 0
lea ecx, [ebp - 0x8c]
call fcn.00404310
mov eax, esi
jmp 0x412edf
push edi
push dword [ebp + 0xc]
push esi
mov edx, dword [ebp - 0x1f0]
mov ecx, dword [ebp - 0x1f4]
call fcn.00403dc0
add esp, 0xc
mov esi, eax
mov byte [ebp - 4], 8
mov byte [ebp - 4], 1
lea ecx, [ebp - 0x44]
call fcn.00404310
mov byte [ebp - 4], 9
mov byte [ebp - 4], 0
lea ecx, [ebp - 0x8c]
call fcn.00404310
mov eax, esi
jmp 0x412edf
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 0x14]
xor ecx, ebp
call fcn.0043488a
mov esp, ebp
pop ebp
ret