Function at 0x47e635
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
push edi
push 0x44
pop esi
push esi
xor ebx, ebx
lea eax, [esp + 0x74]
mov edi, ecx
push ebx
push eax
mov dword [esp + 0x3c], edi
call fcn.00421d50
xor eax, eax
mov dword [esp + 0x7c], esi
inc eax
mov dword [esp + 0x20], ebx
mov dword [esp + 0xa8], eax
add esp, 0xc
mov word [esp + 0xa0], ax
mov esi, ebx
mov al, byte [ebp + 0xc]
mov dword [esp + 0x18], ebx
mov dword [esp + 0x10], ebx
mov dword [esp + 0x2c], ebx
mov dword [esp + 0x28], ebx
mov dword [esp + 0x20], ebx
mov ebx, dword [ebp + 0x10]
test al, al
je 0x47e6c2
mov eax, dword [ebx + 4]
mov ecx, dword [eax + 0xc]
call fcn.004095a5
cmp dword [ebx + 8], 7
mov dword [esp + 0x2c], eax
jbe 0x47e6f8
mov eax, dword [ebx + 4]
mov ecx, dword [eax + 0x1c]
call fcn.004095a5
mov esi, eax
mov eax, dword [ebx + 4]
mov ecx, dword [eax + 0x1c]
jmp 0x47e6db
cmp dword [ebx + 8], 3
jbe 0x47e70d
mov eax, dword [ebx + 4]
mov ecx, dword [eax + 0xc]
call fcn.004095a5
mov esi, eax
mov eax, dword [ebx + 4]
mov ecx, dword [eax + 0xc]
and esi, 0xffff0000
call fcn.004095a5
and eax, 0xffff
mov dword [esp + 0x28], eax
mov al, byte [ebp + 0xc]
test al, al
je 0x47e70d
jmp 0x47e6fb
mov al, byte [ebp + 0xc]
cmp dword [ebx + 8], 6
jbe 0x47e709
mov eax, dword [ebx + 4]
mov ecx, dword [eax + 0x18]
jmp 0x47e71b
test al, al
jne 0x47e728
push 2
pop eax
cmp dword [ebx + 8], eax
jbe 0x47e728
mov eax, dword [ebx + 4]
mov ecx, dword [eax + 8]
call fcn.004095a5
mov word [esp + 0xa0], ax
test esi, 0x10000
je 0x47e738
mov dword [esp + 0x20], 0x10
mov eax, dword [ebx + 4]
mov esi, dword [eax]
mov ecx, esi
call int.00409337
mov eax, dword [esi + 8]
mov ecx, dword [eax]
call fcn.0041ec29
cmp byte [ebp + 0xc], 0
je 0x47e811
mov ecx, dword [ebx + 4]
mov dword [esp + 0x14], eax
mov esi, dword [ecx + 4]
mov ecx, esi
call int.00409337
mov ecx, dword [esi + 8]
mov ecx, dword [ecx]
call fcn.0041ec29
mov ecx, dword [ebx + 4]
mov dword [esp + 0x18], eax
mov esi, dword [ecx + 8]
mov ecx, esi
call int.00409337
mov ecx, dword [esi + 8]
mov ecx, dword [ecx]
call fcn.0041ec29
mov ecx, dword [ebx + 4]
mov dword [esp + 0x10], eax
mov esi, dword [ecx + 0x10]
mov ecx, esi
call int.00409337
mov ecx, dword [esi + 8]
mov ecx, dword [ecx]
call fcn.0041ec29
cmp dword [ebx + 8], 5
mov dword [esp + 0x1c], eax
jbe 0x47e7df
mov ecx, dword [ebx + 4]
mov esi, dword [ecx + 0x14]
mov ecx, esi
call int.00409337
mov ecx, dword [esi + 8]
mov ecx, dword [ecx]
call fcn.0041ec29
mov esi, eax
test esi, esi
je 0x47e7df
push esi
call fcn.00421b6c
pop ecx
test eax, eax
jne 0x47e879
mov edi, dword [sym.imp.KERNEL32.dll_GetSystemDirectoryW]
push 0
push 0
call edi
mov esi, eax
xor ecx, ecx
push 2
pop edx
lea eax, [esi + 1]
mul edx
seto cl
neg ecx
or ecx, eax
push ecx
call fcn.0041fd2e
pop ecx
push esi
mov esi, eax
mov dword [esp + 0x28], eax
push esi
call edi
jmp 0x47e875
cmp dword [ebx + 8], 1
mov dword [esp + 0x1c], eax
jbe 0x47e843
mov eax, dword [ebx + 4]
mov esi, dword [eax + 4]
mov ecx, esi
call int.00409337
mov eax, dword [esi + 8]
mov ecx, dword [eax]
call fcn.0041ec29
mov esi, eax
test esi, esi
je 0x47e843
push esi
call fcn.00421b6c
pop ecx
test eax, eax
jne 0x47e8ae
mov edi, dword [sym.imp.KERNEL32.dll_GetCurrentDirectoryW]
push 0
push 0
call edi
mov esi, eax
xor ecx, ecx
push 2
pop edx
lea eax, [esi + 1]
mul edx
seto cl
neg ecx
or ecx, eax
push ecx
call fcn.0041fd2e
pop ecx
push eax
push esi
mov dword [esp + 0x2c], eax
call edi
mov esi, dword [esp + 0x24]
mov edi, dword [esp + 0x30]
cmp byte [ebp + 0xc], 0
je 0x47e8ae
mov ecx, dword [ebx + 4]
push 0x48e91c
mov ecx, dword [ecx]
call fcn.004098b7
mov ecx, dword [ebx + 4]
push 0x48e91c
mov ecx, dword [ecx + 4]
call fcn.004098b7
mov ecx, dword [ebx + 4]
push 0x48e91c
mov ecx, dword [ecx + 8]
call fcn.004098b7
mov edx, dword [esp + 0x28]
lea ecx, [esp + 0x48]
push edx
call fcn.00465704
test edx, edx
je 0x47e91a
call fcn.00465dc1
cmp eax, 0xffffffff
mov dword [esp + 0xac], eax
lea ecx, [esp + 0x48]
sete bl
dec bl
and bl, 1
call fcn.00465cd0
cmp eax, 0xffffffff
mov dword [esp + 0xb0], eax
lea ecx, [esp + 0x48]
sete bh
dec bh
and bh, bl
call fcn.00465d49
cmp eax, 0xffffffff
mov dword [esp + 0xa8], eax
sete bl
dec bl
and bl, bh
je 0x47e91c
or dword [esp + 0x9c], 0x100
jmp 0x47e91c
xor bl, bl
cmp byte [ebp + 0xc], 0
je 0x47e9cc
call fcn.0045730b
test al, al
lea eax, [esp + 0x38]
push eax
lea eax, [esp + 0x74]
push eax
push esi
push dword [esp + 0x2c]
push dword [esp + 0x2c]
push ecx
push dword [esp + 0x44]
push dword [esp + 0x2c]
push dword [esp + 0x38]
push dword [esp + 0x38]
je 0x47e95a
call fcn.00457346
jmp 0x47e95f
call fcn.004575e7
push dword [esp + 0x14]
mov bh, al
call fcn.00421b6c
pop ecx
mov ecx, dword [esp + 0x14]
test eax, eax
je 0x47e97a
mov byte [ecx], 0
inc ecx
dec eax
jne 0x47e973
push dword [esp + 0x18]
call fcn.00421b6c
pop ecx
mov ecx, dword [esp + 0x18]
test eax, eax
je 0x47e993
mov byte [ecx], 0
inc ecx
dec eax
jne 0x47e98c
push dword [esp + 0x10]
call fcn.00421b6c
pop ecx
mov ecx, dword [esp + 0x10]
test eax, eax
je 0x47e9ac
mov byte [ecx], 0
inc ecx
dec eax
jne 0x47e9a5
push dword [esp + 0x14]
call fcn.0041fda4
pop ecx
push dword [esp + 0x18]
call fcn.0041fda4
pop ecx
push dword [esp + 0x10]
call fcn.0041fda4
pop ecx
jmp 0x47e9f6
lea eax, [esp + 0x38]
push eax
lea eax, [esp + 0x74]
push eax
push esi
push 0
push dword [esp + 0x30]
movzx eax, bl
push eax
push 0
push 0
push dword [esp + 0x3c]
push 0
call dword [sym.imp.KERNEL32.dll_CreateProcessW]
test eax, eax
setne bh
push dword [esp + 0x1c]
call fcn.0041fda4
pop ecx
push esi
call fcn.0041fda4
pop ecx
test bh, bh
jne 0x47ea48
mov eax, dword [edi]
xor ebx, ebx
push ebx
push 1
mov ecx, dword [eax + 4]
add ecx, edi
call fcn.0045557f
push ebx
call dword [sym.imp.KERNEL32.dll_GetLastError]
push eax
mov eax, dword [edi]
mov ecx, dword [eax + 4]
add ecx, edi
call fcn.0041ed4a
mov esi, dword [ebp + 0x14]
mov ecx, esi
call int.004093c0
mov dword [esi + 0xc], 1
mov dword [esi], ebx
jmp 0x47eac9
push dword [esp + 0x3c]
call dword [sym.imp.KERNEL32.dll_CloseHandle]
test bl, bl
je 0x47ea80
lea ecx, [esp + 0x48]
call fcn.00465974
mov eax, dword [esp + 0x40]
lea ecx, [esp + 0x48]
mov dword [esp + 0x4c], eax
call fcn.00465fbc
lea eax, [esp + 0x48]
push eax
lea ecx, [edi + 0x480]
call fcn.0047eb17
cmp byte [ebp + 8], 0
je 0x47ea92
mov eax, dword [esp + 0x38]
mov dword [edi + 0x468], eax
jmp 0x47eac9
mov eax, dword [esp + 0x40]
fild dword [esp + 0x40]
test eax, eax
jns 0x47eaa4
fadd qword [0x4b8d08]
mov esi, dword [ebp + 0x14]
mov ecx, esi
fstp qword [esp + 0x30]
call int.004093c0
fld qword [esp + 0x30]
push dword [esp + 0x38]
fstp qword [esi]
mov dword [esi + 0xc], 3
call dword [sym.imp.KERNEL32.dll_CloseHandle]
lea ecx, [esp + 0x48]
call fcn.0046579e
pop edi
pop esi
xor eax, eax
pop ebx
mov esp, ebp
pop ebp
ret 0x10