Function at 0x47ef90
Capabilities:
Check if file exists
Create process on windows

Disassembly:
push 0xffffffffffffffff
push 0x501d31
mov eax, dword fs:[0]
push eax
sub esp, 0x25c
mov eax, dword [0x5364d0]
xor eax, esp
mov dword [esp + 0x258], eax
push ebx
push ebp
push edi
mov eax, dword [0x5364d0]
xor eax, esp
push eax
lea eax, [esp + 0x26c]
mov dword fs:[0], eax
mov eax, dword [esp + 0x27c]
push esi
mov dword [esp + 0x20], eax
call dword [sym.imp.SHLWAPI.dll_PathFileExistsW]
test eax, eax
je 0x47f22c
mov edx, dword [0x563288]
mov eax, dword [edx + 0xc]
mov ecx, 0x563288
call eax
add eax, 0x10
mov dword [esp + 0x18], eax
xor ebx, ebx
mov dword [esp + 0x274], ebx
mov edx, dword [0x563288]
mov eax, dword [edx + 0xc]
mov ecx, 0x563288
call eax
add eax, 0x10
mov dword [esp + 0x10], eax
push esi
push 0x516f1c
lea edi, [esp + 0x18]
mov byte [esp + 0x27c], 1
call fcn.00404890
push 0x38
lea ecx, [esp + 0x34]
push ebx
push ecx
call fcn.004e8fe0
mov edx, dword [0x563288]
mov eax, dword [edx + 0xc]
add esp, 0x14
mov ecx, 0x563288
mov dword [esp + 0x24], 0x3c
mov dword [esp + 0x28], pe_nt_image_headers32
mov dword [esp + 0x2c], ebx
mov dword [esp + 0x30], ebx
mov dword [esp + 0x3c], ebx
call eax
lea ebp, [eax + 0x10]
mov dword [esp + 0x14], ebp
mov eax, dword [esp + 0x280]
mov byte [esp + 0x274], 2
cmp eax, 1
jne 0x47f09e
mov ecx, dword [esp + 0x10]
mov dword [esp + 0x34], str.notepad.exe
mov dword [esp + 0x38], ecx
jmp 0x47f13b
cmp eax, 2
jne 0x47f0f6
push 0x206
lea eax, [esp + 0x66]
xor edx, edx
push ebx
push eax
mov word [esp + 0x6c], dx
call fcn.004e8fe0
add esp, 0xc
push 0x104
lea ecx, [esp + 0x64]
push ecx
push ebx
call dword [sym.imp.KERNEL32.dll_GetModuleFileNameW]
mov eax, dword [esp + 0x10]
push eax
lea edx, [esp + 0x64]
push str._open__s
lea edi, [esp + 0x20]
mov dword [esp + 0x3c], edx
call fcn.00404890
mov ecx, dword [esp + 0x20]
add esp, 8
mov dword [esp + 0x38], ecx
jmp 0x47f13b
push esi
mov dword [esp + 0x38], esi
mov dword [esp + 0x3c], ebx
call dword [sym.imp.SHLWAPI.dll_PathIsDirectoryW]
test eax, eax
jne 0x47f13b
mov edx, esi
lea edi, [esp + 0x14]
call fcn.00401600
mov ebp, dword [esp + 0x14]
push 0x5c
push ebp
call fcn.004e5c9d
add esp, 8
cmp eax, ebx
je 0x47f137
sub eax, ebp
sar eax, 1
js 0x47f137
push eax
call fcn.0047ef40
mov ebp, dword [esp + 0x14]
mov dword [esp + 0x3c], ebp
or dword [esp + 0x28], 0x1000
lea edx, [esp + 0x24]
push edx
mov dword [esp + 0x44], 1
mov dword [esp + 0x60], ebx
call dword [sym.imp.SHELL32.dll_ShellExecuteExW]
mov eax, dword [esp + 0x44]
cmp eax, 0x20
ja 0x47f230
cmp eax, 0x1f
jne 0x47f1b5
call dword [sym.imp.KERNEL32.dll_GetLastError]
push eax
lea eax, [esp + 0x24]
push eax
call fcn.004807f0
mov eax, dword [eax]
mov ecx, dword [esp + 0x24]
add esp, 8
push 0x10
push 0x510134
push eax
push ecx
call dword [sym.imp.USER32.dll_MessageBoxW]
mov eax, dword [esp + 0x20]
add eax, 0xfffffff0
lea edx, [eax + 0xc]
or ecx, 0xffffffff
lock xadd dword [edx], ecx
dec ecx
test ecx, ecx
jg 0x47f1b5
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
add ebp, 0xfffffff0
mov byte [esp + 0x274], 1
lea ecx, [ebp + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x47f1da
mov ecx, dword [ebp]
mov eax, dword [ecx]
mov edx, dword [eax + 4]
push ebp
call edx
mov byte [esp + 0x274], bl
mov eax, dword [esp + 0x10]
add eax, 0xfffffff0
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x47f201
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
mov dword [esp + 0x274], 0xffffffff
mov eax, dword [esp + 0x18]
add eax, 0xfffffff0
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x47f22c
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
xor eax, eax
jmp 0x47f2ac
add ebp, 0xfffffff0
mov byte [esp + 0x274], 1
lea ecx, [ebp + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x47f255
mov ecx, dword [ebp]
mov eax, dword [ecx]
mov edx, dword [eax + 4]
push ebp
call edx
mov byte [esp + 0x274], bl
mov eax, dword [esp + 0x10]
add eax, 0xfffffff0
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x47f27c
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
mov dword [esp + 0x274], 0xffffffff
mov eax, dword [esp + 0x18]
add eax, 0xfffffff0
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x47f2a7
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
mov eax, 1
mov ecx, dword [esp + 0x26c]
mov dword fs:[0], ecx
pop ecx
pop edi
pop ebp
pop ebx
mov ecx, dword [esp + 0x258]
xor ecx, esp
call fcn.004e3edb
add esp, 0x268
ret