Function at 0x45f05b
Capabilities:
Create process on windows
Get common file path

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
sub esp, 0xac
push ebx
push esi
mov esi, dword [ebp + 0x14]
push edi
push 0x44
xor edi, edi
lea eax, [esp + 0x74]
push edi
push eax
call fcn.00414fc0
xor eax, eax
add esp, 0xc
mov ecx, 1
xor ebx, ebx
mov dword [esp + 0x70], 0x44
mov dword [esp + 0x9c], 1
mov word [esp + 0xa0], cx
mov dword [esp + 0x2c], edi
mov dword [esp + 0x14], edi
mov dword [esp + 0x28], edi
mov dword [esp + 0x24], eax
mov dword [esp + 0x20], eax
cmp byte [ebp + 0x10], al
je 0x45f106
mov edx, dword [esi + 4]
mov ecx, dword [edx + 0xc]
call fcn.00401880
cmp dword [esi + 8], 7
mov dword [esp + 0x28], eax
jbe 0x45f0f8
mov eax, dword [esi + 4]
mov ecx, dword [eax + 0x1c]
call fcn.00401880
mov ecx, dword [esi + 4]
mov ecx, dword [ecx + 0x1c]
mov edi, eax
and edi, 0xffff0000
call fcn.00401880
and eax, 0xffff
mov dword [esp + 0x24], eax
cmp dword [esi + 8], 6
jbe 0x45f14c
mov ecx, dword [esi + 4]
mov ecx, dword [ecx + 0x18]
jmp 0x45f13f
cmp dword [esi + 8], 3
jbe 0x45f133
mov edx, dword [esi + 4]
mov ecx, dword [edx + 0xc]
call fcn.00401880
mov edi, eax
mov eax, dword [esi + 4]
mov ecx, dword [eax + 0xc]
and edi, 0xffff0000
call fcn.00401880
and eax, 0xffff
mov dword [esp + 0x24], eax
cmp dword [esi + 8], 2
jbe 0x45f14c
mov edx, dword [esi + 4]
mov ecx, dword [edx + 8]
call fcn.00401880
mov word [esp + 0xa0], ax
test edi, 0x10000
je 0x45f15c
mov dword [esp + 0x20], 0x10
mov eax, dword [esi + 4]
mov eax, dword [eax]
push eax
call fcn.00454e28
mov edi, eax
call fcn.00411c60
cmp byte [ebp + 0x10], bl
je 0x45f2b8
mov ecx, dword [esi + 4]
mov dword [esp + 0x30], eax
mov eax, dword [ecx + 4]
push eax
call fcn.00454e28
mov edi, eax
call fcn.00411c60
mov edx, dword [esi + 4]
mov dword [esp + 0x2c], eax
mov eax, dword [edx + 8]
push eax
call fcn.00454e28
mov edi, eax
call fcn.00411c60
mov dword [esp + 0x14], eax
mov eax, dword [esi + 4]
mov eax, dword [eax + 0x10]
push eax
call fcn.00454e28
mov edi, eax
call fcn.00411c60
cmp dword [esi + 8], 5
mov dword [esp + 0x1c], eax
jbe 0x45f1ee
mov ecx, dword [esi + 4]
mov eax, dword [ecx + 0x14]
push eax
call fcn.00454e28
mov edi, eax
call fcn.00411c60
mov dword [esp + 0x18], eax
test eax, eax
je 0x45f1ee
push eax
call fcn.0041503a
add esp, 4
test eax, eax
jne 0x45f220
mov ebx, dword [sym.imp.KERNEL32.dll_GetSystemDirectoryW]
push 0
push 0
call ebx
mov edi, eax
xor ecx, ecx
lea eax, [edi + 1]
mov edx, 2
mul edx
seto cl
neg ecx
or ecx, eax
push ecx
call fcn.00412dbe
add esp, 4
push edi
push eax
mov dword [esp + 0x20], eax
call ebx
mov eax, dword [esi + 4]
mov ebx, dword [eax]
mov edi, 0x4838c0
call fcn.0040fc70
mov ecx, dword [esi + 4]
mov ebx, dword [ecx + 4]
call fcn.0040fc70
mov edx, dword [esi + 4]
mov ebx, dword [edx + 8]
call fcn.0040fc70
mov ebx, dword [esp + 0x30]
mov esi, dword [esp + 0x18]
mov edi, dword [esp + 0x24]
push edi
lea eax, [esp + 0x4c]
push eax
call fcn.00438038
test edi, edi
je 0x45f2b1
lea ecx, [esp + 0x48]
push ecx
mov byte [esp + 0x16], 1
call fcn.0044657a
mov dword [esp + 0xac], eax
cmp eax, 0xffffffff
jne 0x45f280
mov byte [esp + 0x12], 0
lea edx, [esp + 0x48]
push edx
call fcn.00446538
mov dword [esp + 0xb0], eax
cmp eax, 0xffffffff
jne 0x45f29b
mov byte [esp + 0x12], 0
lea eax, [esp + 0x48]
push eax
call fcn.00446513
mov dword [esp + 0xa8], eax
cmp eax, 0xffffffff
jne 0x45f323
mov byte [esp + 0x12], 0
jmp 0x45f335
cmp dword [esi + 8], 1
mov dword [esp + 0x1c], eax
jbe 0x45f2ec
mov ecx, dword [esi + 4]
mov eax, dword [ecx + 4]
push eax
call fcn.00454e28
mov edi, eax
call fcn.00411c60
mov esi, eax
test esi, esi
je 0x45f2ec
push esi
call fcn.0041503a
add esp, 4
test eax, eax
jne 0x45f24d
mov edi, dword [sym.imp.KERNEL32.dll_GetCurrentDirectoryW]
push 0
push 0
call edi
mov esi, eax
xor ecx, ecx
lea eax, [esi + 1]
mov edx, 2
mul edx
seto cl
neg ecx
or ecx, eax
push ecx
call fcn.00412dbe
add esp, 4
push eax
push esi
mov dword [esp + 0x20], eax
call edi
jmp 0x45f249
cmp byte [esp + 0x12], 0
je 0x45f335
or dword [esp + 0x9c], 0x100
cmp byte [ebp + 0x10], 0
je 0x45f3e9
mov eax, dword [esp + 0x20]
mov edi, dword [esp + 0x2c]
lea ecx, [esp + 0x38]
push ecx
mov ecx, dword [esp + 0x20]
lea edx, [esp + 0x74]
push edx
mov edx, dword [esp + 0x30]
push esi
push eax
mov eax, dword [esp + 0x24]
push ecx
push edx
push eax
push edi
push ebx
call fcn.00449205
push ebx
mov byte [esp + 0x17], al
call fcn.0041503a
add esp, 4
mov ecx, ebx
test eax, eax
je 0x45f385
mov byte [ecx], 0
inc ecx
sub eax, 1
jne 0x45f37c
push edi
call fcn.0041503a
add esp, 4
mov ecx, edi
test eax, eax
je 0x45f3a4
lea esp, [esp]
mov byte [ecx], 0
inc ecx
sub eax, 1
jne 0x45f39b
mov ecx, dword [esp + 0x14]
push ecx
call fcn.0041503a
mov ecx, dword [esp + 0x18]
add esp, 4
test eax, eax
je 0x45f3c4
mov edi, edi
mov byte [ecx], 0
inc ecx
sub eax, 1
jne 0x45f3bb
push ebx
call fcn.00412f61
add esp, 4
push edi
call fcn.00412f61
mov edx, dword [esp + 0x18]
add esp, 4
push edx
call fcn.00412f61
mov bl, byte [esp + 0x17]
add esp, 4
jmp 0x45f417
mov edx, dword [esp + 0x20]
lea eax, [esp + 0x38]
push eax
movzx eax, byte [esp + 0x16]
lea ecx, [esp + 0x74]
push ecx
mov ecx, dword [esp + 0x24]
push esi
push 0
push edx
push eax
push 0
push 0
push ecx
push 0
call dword [sym.imp.KERNEL32.dll_CreateProcessW]
test eax, eax
setne bl
mov edx, dword [esp + 0x1c]
push edx
call fcn.00412f61
add esp, 4
push esi
call fcn.00412f61
add esp, 4
test bl, bl
jne 0x45f483
mov esi, dword [ebp + 8]
mov eax, dword [esi]
mov eax, dword [eax + 4]
push 0
push 1
add eax, esi
call fcn.00402050
push 0
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov ecx, dword [esi]
push eax
mov eax, dword [ecx + 4]
add eax, esi
call fcn.00402010
mov esi, dword [ebp + 0x18]
call fcn.00401f90
lea edx, [esp + 0x48]
push edx
mov dword [esi + 8], 1
mov dword [esi], 0
call fcn.0044dc21
xor eax, eax
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 0x14
mov eax, dword [esp + 0x3c]
mov edi, dword [sym.imp.KERNEL32.dll_CloseHandle]
push eax
call edi
cmp byte [esp + 0x12], 0
je 0x45f4c7
lea ecx, [esp + 0x48]
push ecx
call fcn.00446493
mov edx, dword [esp + 0x40]
lea eax, [esp + 0x48]
push eax
mov dword [esp + 0x50], edx
call fcn.00446432
mov edx, dword [ebp + 8]
lea ecx, [esp + 0x48]
push ecx
add edx, 0x420
push edx
call fcn.0044d07d
cmp byte [ebp + 0xc], 0
je 0x45f4ef
mov eax, dword [esp + 0x38]
mov ecx, dword [ebp + 8]
mov dword [ecx + 0x408], eax
lea ecx, [esp + 0x48]
push ecx
call fcn.0044dc21
xor eax, eax
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 0x14
mov edx, dword [esp + 0x40]
fild dword [esp + 0x40]
test edx, edx
jge 0x45f501
fadd qword [0x48b510]
mov esi, dword [ebp + 0x18]
fstp qword [esp + 0x30]
call fcn.00401f90
fld qword [esp + 0x30]
mov eax, dword [esp + 0x38]
fstp qword [esi]
push eax
mov dword [esi + 8], 3
call edi
lea ecx, [esp + 0x48]
push ecx
call fcn.0044dc21
pop edi
pop esi
xor eax, eax
pop ebx
mov esp, ebp
pop ebp
ret 0x14