Function at 0x412120
Capabilities:
Create process on windows

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x4513ec
mov eax, dword fs:[0]
push eax
sub esp, 0x2e8
mov eax, dword [0x473018]
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 - 0x1e4], esi
mov edi, dword [ebp + 0x10]
mov dword [ebp - 0x1e0], 0
mov dword [ebp - 4], 0
lea ecx, [ebp - 0x8c]
call fcn.0040d420
mov byte [ebp - 4], 1
lea eax, [ebp - 0x2c]
mov dword [ebp - 0x1e8], eax
mov byte [ebp - 4], 2
mov eax, str.PsfRuntime
mov dword [ebp - 0x200], eax
mov ecx, 0xa
mov dword [ebp - 0x1fc], 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 - 0x208], eax
mov dword [ebp - 0x204], ecx
push ecx
push eax
lea ecx, [ebp - 0x2c]
call fcn.00404580
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.0040bb70
add esp, 4
mov byte [ebp - 4], 7
mov byte [ebp - 4], 6
lea ecx, [ebp - 0x2c]
call fcn.004040c0
push ecx
lea ecx, [ebp - 0x44]
call fcn.00419570
lea ecx, [ebp - 0x44]
call fcn.0040c5a0
test al, al
je 0x4129ef
cmp byte [ebp + 0x14], 0
jne 0x4129ef
lea ecx, [ebp - 0x1dc]
call fcn.00412ad0
mov byte [ebp - 4], 0xa
lea eax, [ebp - 0x44]
cmp dword [ebp - 0x30], 8
cmovae eax, dword [ebp - 0x44]
push eax
call dword [sym.imp.KERNEL32.dll_LoadLibraryW]
call dword [sym.imp.PsfRuntime32.dll__PSFQueryPackageRootPath_0]
mov dword [ebp - 0x1e8], eax
push ecx
lea eax, [ebp - 0x1e8]
push eax
lea ecx, [ebp - 0xd4]
call fcn.00419200
mov byte [ebp - 4], 0xb
push 0
call dword [sym.imp.PsfRuntime32.dll__PSFQueryCurrentAppLaunchConfig_4]
mov esi, eax
mov dword [ebp - 0x1e8], esi
test esi, esi
je 0x4123a8
mov eax, dword [ebp - 0x1e4]
cmp dword [eax + 0x10], 0
jne 0x4122f3
lea eax, [ebp - 0x8c]
cmp dword [ebp - 0x78], 8
cmovae eax, dword [ebp - 0x8c]
push eax
lea ecx, [ebp - 0x5c]
call fcn.00403f60
mov byte [ebp - 4], 0xc
mov esi, dword [ebp - 0x1e0]
or esi, 1
jmp 0x41230f
push eax
lea ecx, [ebp - 0xec]
call fcn.00403fa0
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.00419020
mov dword [ebp - 4], 0xe
lea eax, [ebp - 0xd4]
push eax
lea eax, [ebp - 0x2c]
push eax
mov esi, dword [ebp - 0x1e8]
push esi
lea ecx, [ebp - 0x1dc]
call fcn.0040fb40
mov dword [ebp - 4], 0xf
mov byte [ebp - 4], 0xd
lea ecx, [ebp - 0x2c]
call fcn.004040c0
mov dword [ebp - 4], 0xc
mov eax, dword [ebp - 0x1e0]
test al, 2
je 0x412381
and eax, 0xfffffffd
mov dword [ebp - 0x1e0], eax
lea ecx, [ebp - 0xec]
call fcn.004040c0
mov eax, dword [ebp - 0x1e0]
mov dword [ebp - 4], 0xb
test al, 1
je 0x41239d
and eax, 0xfffffffe
mov dword [ebp - 0x1e0], eax
lea ecx, [ebp - 0x5c]
call fcn.004040c0
lea ecx, [ebp - 0x1dc]
call fcn.00410310
lea ecx, [ebp - 0xa4]
call fcn.0041fc80
mov byte [ebp - 4], 0x10
test esi, esi
je 0x4123e3
mov eax, dword [esi]
mov eax, dword [eax + 0x1c]
push str.workingDirectory
mov ecx, esi
call eax
test eax, eax
je 0x4123e3
mov ecx, eax
call fcn.0040ccb0
mov ecx, dword [eax]
mov edx, dword [ecx + 0x20]
push 0
mov ecx, eax
call edx
mov esi, eax
jmp 0x4123e5
xor esi, esi
mov dword [ebp - 0x1e4], esi
push ecx
push dword [ebp - 0x1f4]
lea ecx, [ebp - 0x74]
call fcn.00419020
mov byte [ebp - 4], 0x11
lea eax, [ebp - 0x2c]
push eax
lea ecx, [ebp - 0x74]
call fcn.0040baa0
mov byte [ebp - 4], 0x12
push eax
mov edx, 0x462df0
lea ecx, [ebp - 0xec]
call fcn.004194d0
mov byte [ebp - 4], 0x13
push 0x463048
mov edx, eax
lea ecx, [ebp - 0x5c]
call fcn.00419650
mov byte [ebp - 4], 0x14
push dword [ebp - 0x1f0]
mov edx, eax
lea ecx, [ebp - 0xbc]
call fcn.00419760
add esp, 0xc
mov byte [ebp - 4], 0x16
lea ecx, [ebp - 0x5c]
call fcn.004040c0
mov byte [ebp - 4], 0x17
lea ecx, [ebp - 0xec]
call fcn.004040c0
mov byte [ebp - 4], 0x19
mov byte [ebp - 4], 0x18
lea ecx, [ebp - 0x2c]
call fcn.004040c0
mov dword [ebp - 0x25c], 0x44
push 0x40
push 0
lea eax, [ebp - 0x258]
push eax
call fcn.00434cd0
add esp, 0xc
mov dword [ebp - 0x230], 1
mov ax, word [ebp + 0xc]
mov word [ebp - 0x22c], ax
test esi, esi
je 0x412501
push ecx
lea eax, [ebp - 0x1e4]
push eax
lea ecx, [ebp - 0x2c]
call fcn.00419200
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.0040bb70
add esp, 4
mov edx, eax
mov dword [ebp - 4], 0x1b
or esi, 8
mov dword [ebp - 0x1e0], esi
cmp dword [edx + 0x14], 8
jb 0x412522
mov edx, dword [edx]
jmp 0x412522
cmp dword [ebp - 0x94], 0
jne 0x41250e
xor edx, edx
jmp 0x412522
lea edx, [ebp - 0xa4]
cmp dword [ebp - 0x90], 8
cmovae edx, dword [ebp - 0xa4]
mov esi, dword [edi + 0x10]
test esi, esi
jne 0x41252d
xor edi, edi
jmp 0x412535
cmp dword [edi + 0x14], 8
jb 0x412535
mov edi, dword [edi]
neg esi
sbb esi, esi
and esi, 0x400
mov dword [ebp - 0x1e4], esi
lea ecx, [ebp - 0xbc]
cmp dword [ebp - 0xa8], 8
cmovae ecx, dword [ebp - 0xbc]
lea eax, [ebp - 0x74]
cmp dword [ebp - 0x60], 8
cmovae eax, dword [ebp - 0x74]
lea esi, [ebp - 0x218]
push esi
lea esi, [ebp - 0x25c]
push esi
push edx
push edi
mov esi, dword [ebp - 0x1e4]
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 0x4125be
and eax, 0xfffffff7
mov dword [ebp - 0x1e0], eax
mov dword [ebp - 4], 0x1c
mov byte [ebp - 4], 0x1a
lea ecx, [ebp - 0x5c]
call fcn.004040c0
mov eax, dword [ebp - 0x1e0]
mov dword [ebp - 4], 0x18
test al, 4
je 0x4125e2
and eax, 0xfffffffb
mov dword [ebp - 0x1e0], eax
mov byte [ebp - 4], 0x1d
mov byte [ebp - 4], 0x18
lea ecx, [ebp - 0x2c]
call fcn.004040c0
test esi, esi
jne 0x4127ad
push ecx
lea ecx, [ebp - 0x2f4]
call fcn.00413950
mov byte [ebp - 4], 0x1e
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov esi, eax
mov ecx, dword [0x473a40]
mov edx, dword [ecx + 8]
push esi
lea eax, [ebp - 0x5c]
push eax
mov ecx, 0x473a40
call edx
mov byte [ebp - 4], 0x1f
mov ecx, eax
cmp dword [eax + 0x14], 0x10
jb 0x412625
mov ecx, dword [eax]
mov eax, dword [eax + 0x10]
mov dword [ebp - 0x1f8], ecx
mov dword [ebp - 0x1f4], eax
push eax
push ecx
lea ecx, [ebp - 0x2c]
call fcn.0040cbe0
add esp, 8
mov byte [ebp - 4], 0x21
lea ecx, [ebp - 0x5c]
call fcn.00417050
push 0
mov eax, dword [ebp - 0x1c]
add eax, 0xfffffffd
push eax
lea ecx, [ebp - 0x2c]
call fcn.00403ec0
lea ecx, [ebp - 0x2f4]
call fcn.00419860
mov edi, eax
lea eax, [ebp - 0x5c]
push eax
lea ecx, [ebp - 0x74]
call fcn.0040baa0
mov byte [ebp - 4], 0x22
mov ecx, dword [eax + 0x10]
cmp dword [eax + 0x14], 8
jb 0x412686
mov eax, dword [eax]
push ecx
mov edx, eax
mov ecx, edi
call fcn.0041bb00
mov edx, str.__n__Error:
mov ecx, eax
call fcn.00419a60
lea edx, [ebp - 0x2c]
cmp dword [ebp - 0x18], 8
cmovae edx, dword [ebp - 0x2c]
push dword [ebp - 0x1c]
mov ecx, eax
call fcn.0041bb00
add esp, 8
mov edx, 0x4627e8
mov ecx, eax
call fcn.00419a60
push esi
mov ecx, eax
call fcn.00413b50
mov edx, 0x4627d4
mov ecx, eax
call fcn.00419a60
mov byte [ebp - 4], 0x23
mov byte [ebp - 4], 0x21
lea ecx, [ebp - 0x5c]
call fcn.004040c0
lea eax, [ebp - 0xec]
push eax
lea ecx, [ebp - 0x2f4]
call fcn.00413840
mov byte [ebp - 4], 0x24
cmp dword [eax + 0x14], 8
jb 0x412702
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.004040c0
mov byte [ebp - 4], 0x1e
lea ecx, [ebp - 0x2c]
call fcn.004040c0
mov byte [ebp - 4], 0x18
lea ecx, [ebp - 0x2f4]
call fcn.00412d20
mov byte [ebp - 4], 0x11
lea ecx, [ebp - 0xbc]
call fcn.004040c0
mov byte [ebp - 4], 0x25
mov byte [ebp - 4], 0x10
lea ecx, [ebp - 0x74]
call fcn.004040c0
mov byte [ebp - 4], 0xb
lea ecx, [ebp - 0xa4]
call fcn.004040c0
mov byte [ebp - 4], 0x26
mov byte [ebp - 4], 0xa
lea ecx, [ebp - 0xd4]
call fcn.004040c0
mov byte [ebp - 4], 6
lea ecx, [ebp - 0x1dc]
call fcn.00412c10
mov byte [ebp - 4], 0x27
mov byte [ebp - 4], 1
lea ecx, [ebp - 0x44]
call fcn.004040c0
mov byte [ebp - 4], 0x28
mov byte [ebp - 4], 0
lea ecx, [ebp - 0x8c]
call fcn.004040c0
mov eax, esi
jmp 0x412aa5
push 0xffffffffffffffff
push dword [ebp - 0x218]
call dword [sym.imp.KERNEL32.dll_WaitForSingleObject]
test eax, eax
je 0x4128c7
cmp eax, 0xffffffff
je 0x412845
mov byte [ebp - 4], 0x11
lea ecx, [ebp - 0xbc]
call fcn.004040c0
mov byte [ebp - 4], 0x2d
mov byte [ebp - 4], 0x10
lea ecx, [ebp - 0x74]
call fcn.004040c0
mov byte [ebp - 4], 0xb
lea ecx, [ebp - 0xa4]
call fcn.004040c0
mov byte [ebp - 4], 0x2e
mov byte [ebp - 4], 0xa
lea ecx, [ebp - 0xd4]
call fcn.004040c0
mov byte [ebp - 4], 6
lea ecx, [ebp - 0x1dc]
call fcn.00412c10
mov byte [ebp - 4], 0x2f
mov byte [ebp - 4], 1
lea ecx, [ebp - 0x44]
call fcn.004040c0
mov byte [ebp - 4], 0x30
mov byte [ebp - 4], 0
lea ecx, [ebp - 0x8c]
call fcn.004040c0
mov eax, 6
jmp 0x412aa5
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov esi, eax
mov byte [ebp - 4], 0x11
lea ecx, [ebp - 0xbc]
call fcn.004040c0
mov byte [ebp - 4], 0x29
mov byte [ebp - 4], 0x10
lea ecx, [ebp - 0x74]
call fcn.004040c0
mov byte [ebp - 4], 0xb
lea ecx, [ebp - 0xa4]
call fcn.004040c0
mov byte [ebp - 4], 0x2a
mov byte [ebp - 4], 0xa
lea ecx, [ebp - 0xd4]
call fcn.004040c0
mov byte [ebp - 4], 6
lea ecx, [ebp - 0x1dc]
call fcn.00412c10
mov byte [ebp - 4], 0x2b
mov byte [ebp - 4], 1
lea ecx, [ebp - 0x44]
call fcn.004040c0
mov byte [ebp - 4], 0x2c
mov byte [ebp - 4], 0
lea ecx, [ebp - 0x8c]
call fcn.004040c0
mov eax, esi
jmp 0x412aa5
lea ecx, [ebp - 0x1dc]
call fcn.00410380
lea eax, [ebp - 0x1ec]
push eax
push dword [ebp - 0x218]
call dword [sym.imp.KERNEL32.dll_GetExitCodeProcess]
test eax, eax
jne 0x41296f
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov esi, eax
mov byte [ebp - 4], 0x11
lea ecx, [ebp - 0xbc]
call fcn.004040c0
mov byte [ebp - 4], 0x31
mov byte [ebp - 4], 0x10
lea ecx, [ebp - 0x74]
call fcn.004040c0
mov byte [ebp - 4], 0xb
lea ecx, [ebp - 0xa4]
call fcn.004040c0
mov byte [ebp - 4], 0x32
mov byte [ebp - 4], 0xa
lea ecx, [ebp - 0xd4]
call fcn.004040c0
mov byte [ebp - 4], 6
lea ecx, [ebp - 0x1dc]
call fcn.00412c10
mov byte [ebp - 4], 0x33
mov byte [ebp - 4], 1
lea ecx, [ebp - 0x44]
call fcn.004040c0
mov byte [ebp - 4], 0x34
mov byte [ebp - 4], 0
lea ecx, [ebp - 0x8c]
call fcn.004040c0
mov eax, esi
jmp 0x412aa5
mov esi, dword [ebp - 0x1ec]
mov byte [ebp - 4], 0x11
lea ecx, [ebp - 0xbc]
call fcn.004040c0
mov byte [ebp - 4], 0x35
mov byte [ebp - 4], 0x10
lea ecx, [ebp - 0x74]
call fcn.004040c0
mov byte [ebp - 4], 0xb
lea ecx, [ebp - 0xa4]
call fcn.004040c0
mov byte [ebp - 4], 0x36
mov byte [ebp - 4], 0xa
lea ecx, [ebp - 0xd4]
call fcn.004040c0
mov byte [ebp - 4], 6
lea ecx, [ebp - 0x1dc]
call fcn.00412c10
mov byte [ebp - 4], 0x37
mov byte [ebp - 4], 1
lea ecx, [ebp - 0x44]
call fcn.004040c0
mov byte [ebp - 4], 0x38
mov byte [ebp - 4], 0
lea ecx, [ebp - 0x8c]
call fcn.004040c0
mov eax, esi
jmp 0x412aa5
push edi
push dword [ebp + 0xc]
push esi
mov edx, dword [ebp - 0x1f0]
mov ecx, dword [ebp - 0x1f4]
call fcn.00403b50
add esp, 0xc
mov esi, eax
mov byte [ebp - 4], 8
mov byte [ebp - 4], 1
lea ecx, [ebp - 0x44]
call fcn.004040c0
mov byte [ebp - 4], 9
mov byte [ebp - 4], 0
lea ecx, [ebp - 0x8c]
call fcn.004040c0
mov eax, esi
jmp 0x412aa5
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.00432e76
mov esp, ebp
pop ebp
ret