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

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
push 0xffffffffffffffff
push 0x4ec810
mov eax, dword fs:[0]
push eax
sub esp, 0x70
push ebx
push esi
push edi
mov eax, dword [0x521390]
xor eax, esp
push eax
lea eax, [esp + 0x80]
mov dword fs:[0], eax
mov dword [esp + 0x18], 0
mov ecx, dword [0x5284a0]
mov edi, 1
cmp dword [ecx + 0x50], edi
jne 0x47e5b8
lea esi, [esp + 0x1c]
mov eax, ecx
call fcn.004684e0
mov eax, dword [eax]
mov dword [esp + 0x18], edi
mov ecx, 0x4f5b64
lea ecx, [ecx]
mov dx, word [eax]
cmp dx, word [ecx]
jne 0x47e5a6
test dx, dx
je 0x47e5a2
mov dx, word [eax + 2]
cmp dx, word [ecx + 2]
jne 0x47e5a6
add eax, 4
add ecx, 4
test dx, dx
jne 0x47e580
xor eax, eax
jmp 0x47e5ab
sbb eax, eax
sbb eax, 0xffffffff
test eax, eax
sete al
test al, al
je 0x47e5b8
mov bl, 1
jmp 0x47e5ba
xor bl, bl
test byte [esp + 0x18], 1
je 0x47e5e1
mov eax, dword [esp + 0x1c]
add eax, 0xfffffff0
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x47e5e1
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
test bl, bl
jne 0x47e812
mov eax, dword [0x5284a0]
lea esi, [esp + 0x18]
call fcn.00468510
mov dword [esp + 0x88], 0
mov ecx, dword [0x5284a0]
cmp dword [ecx + 0x50], edi
je 0x47e645
mov esi, dword [esp + 0x18]
push esi
call dword [sym.imp.SHLWAPI.dll_PathFileExistsW]
test eax, eax
je 0x47e645
push 0
call dword [sym.imp.ole32.dll_CoInitialize]
push ecx
lea eax, [esi - 0x10]
mov dword [esp + 0x24], esp
mov edi, esp
call fcn.0045c3c0
add eax, 0x10
mov dword [edi], eax
call fcn.0047e830
call dword [sym.imp.ole32.dll_CoUninitialize]
jmp 0x47e65a
push 0x4f5b64
lea edx, [esp + 0x1c]
push edx
xor ebx, ebx
call fcn.0045aa80
mov esi, dword [esp + 0x18]
mov eax, dword [ebp + 8]
mov eax, dword [eax + 0x23c]
sub eax, 0x10
call fcn.0045c3c0
add eax, 0x10
mov dword [esp + 0x1c], eax
push 0xd
push str.OtherInst.exe
lea ebx, [esp + 0x24]
mov byte [esp + 0x90], 1
call fcn.0045a6d0
push 0x44
lea ecx, [esp + 0x38]
push 0
push ecx
call fcn.004cfd40
mov edi, dword [esp + 0x28]
add edi, 0xfffffff0
add esp, 0xc
mov eax, edi
mov dword [esp + 0x60], 0x80
call fcn.0045c3c0
add eax, 0x10
mov dword [esp + 0x14], eax
push 1
push 0x4f7e14
lea ebx, [esp + 0x1c]
mov byte [esp + 0x90], 2
call fcn.0045a6d0
push 1
push 0x4f8ee0
call fcn.0045a6d0
mov eax, dword [esi - 0xc]
push eax
push esi
call fcn.0045a6d0
push 1
push 0x4f8ee0
call fcn.0045a6d0
push 1
push 0x4f7e14
call fcn.0045a6d0
push 1
push 0x4f8ee0
call fcn.0045a6d0
mov eax, dword [0x5284a0]
lea esi, [esp + 0x20]
call fcn.004684e0
mov byte [esp + 0x88], 3
mov eax, dword [eax]
mov ecx, dword [eax - 0xc]
push ecx
push eax
call fcn.0045a6d0
mov byte [esp + 0x88], 2
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 0x47e754
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
push 1
push 0x4f8ee0
lea ebx, [esp + 0x1c]
call fcn.0045a6d0
mov esi, dword [esp + 0x14]
mov ebx, 1
cmp dword [esi - 4], ebx
jle 0x47e784
mov ecx, dword [esi - 0xc]
push ecx
lea edx, [esp + 0x18]
push edx
call fcn.00458c10
mov esi, dword [esp + 0x14]
lea eax, [esp + 0x24]
push eax
lea ecx, [esp + 0x38]
push ecx
push 0
push 0
push 0
push 0
push 0
push 0
push esi
push 0
call dword [sym.imp.KERNEL32.dll_CreateProcessW]
lea eax, [esi - 0x10]
mov byte [esp + 0x88], bl
lea edx, [eax + 0xc]
or ecx, 0xffffffff
lock xadd dword [edx], ecx
dec ecx
test ecx, ecx
jg 0x47e7c6
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
mov byte [esp + 0x88], 0
lea ecx, [edi + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x47e7e7
mov ecx, dword [edi]
mov eax, dword [ecx]
mov edx, dword [eax + 4]
push edi
call edx
mov dword [esp + 0x88], 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 0x47e812
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
mov ecx, dword [esp + 0x80]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 4