Function at 0x4b3890
Capabilities:
Check if file exists
Create process on windows
Create process suspended
Get file attributes

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
sub esp, 0x28
push esi
mov esi, dword [0x51dc64]
push edi
mov edi, ecx
test esi, esi
jne 0x4b3986
cmp byte [0x51b9a4], 0
je 0x4b38cd
push 0x51b98c
call dword [sym.imp.KERNEL32.dll_EnterCriticalSection]
mov esi, dword [0x51dc64]
test esi, esi
jne 0x4b396c
mov ecx, str.t_runtime
call fcn.004113f0
mov esi, eax
test esi, esi
jne 0x4b3966
push 0x98c
call fcn.0044c480
mov esi, eax
add esp, 4
mov dword [esi], vtable.ImmCleanup.0
mov ecx, dword [0x505f64]
mov eax, dword [0x505f68]
cmp ecx, eax
jne 0x4b3936
test eax, eax
jne 0x4b3918
mov ecx, dword [0x505f6c]
test ecx, ecx
jne 0x4b391c
lea ecx, [eax + 1]
jmp 0x4b3926
add ecx, ecx
test ecx, ecx
js 0x4b3958
cmp ecx, 0xfffffff
ja 0x4b3958
push ecx
call fcn.00412ca0
test eax, eax
je 0x4b3958
mov ecx, dword [0x505f64]
mov eax, dword [0x505f60]
lea eax, [eax + ecx*8]
test eax, eax
je 0x4b3951
mov dword [eax], esi
mov dword [eax + 4], str.t_runtime
mov ecx, dword [0x505f64]
inc ecx
mov dword [0x505f64], ecx
lea ecx, [esi + 4]
mov dword [esi], vtable.ImmSingleton_class_t_runtime_.0
call fcn.004b0b60
mov dword [0x51dc64], esi
cmp byte [0x51b9a4], 0
je 0x4b3986
push 0x51b98c
call dword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
mov esi, dword [0x51dc64]
cmp byte [esi + 0x8ff], 0
je 0x4b399c
cmp byte [0x51bbf1], 0
jne 0x4b399c
mov al, 1
jmp 0x4b399e
xor al, al
test al, al
je 0x4b3b5b
mov ecx, edi
call fcn.004b7370
test al, al
jne 0x4b3a41
mov eax, dword [edi + 8]
add eax, 4
push eax
call dword [sym.imp.KERNEL32.dll_GetFileAttributesW]
cmp eax, 0xffffffff
je 0x4b39d0
shr eax, 4
not al
and al, 1
jne 0x4b3a41
mov esi, dword [edi + 8]
push 4
mov dword [esp + 0x14], vtable.t_str.0
call fcn.0046c3ce
add esp, 4
mov dword [esp + 0x18], eax
lea ecx, [esp + 0x10]
mov dword [esp + 0x1c], 0
mov dword [eax], 0
call fcn.004a60e0
lea eax, [esi + 4]
push eax
lea ecx, [esp + 0x14]
call fcn.004a5ed0
mov ecx, dword [ebp + 8]
lea eax, [esp + 0x10]
push eax
push 0x4e89f4
call fcn.004a7c10
mov ecx, eax
call fcn.004a71c0
mov eax, dword [esp + 0x18]
test eax, eax
je 0x4b3a37
push eax
call fcn.00459651
add esp, 4
xor al, al
pop edi
pop esi
mov esp, ebp
pop ebp
ret 0x14
mov esi, dword [0x51dc64]
test esi, esi
jne 0x4b3b2a
cmp byte [0x51b9a4], 0
je 0x4b3a71
push 0x51b98c
call dword [sym.imp.KERNEL32.dll_EnterCriticalSection]
mov esi, dword [0x51dc64]
test esi, esi
jne 0x4b3b10
mov ecx, str.t_runtime
call fcn.004113f0
mov esi, eax
test esi, esi
jne 0x4b3b0a
push 0x98c
call fcn.0044c480
mov esi, eax
add esp, 4
mov dword [esi], vtable.ImmCleanup.0
mov ecx, dword [0x505f64]
mov eax, dword [0x505f68]
cmp ecx, eax
jne 0x4b3ada
test eax, eax
jne 0x4b3abc
mov ecx, dword [0x505f6c]
test ecx, ecx
jne 0x4b3ac0
lea ecx, [eax + 1]
jmp 0x4b3aca
add ecx, ecx
test ecx, ecx
js 0x4b3afc
cmp ecx, 0xfffffff
ja 0x4b3afc
push ecx
call fcn.00412ca0
test eax, eax
je 0x4b3afc
mov ecx, dword [0x505f64]
mov eax, dword [0x505f60]
lea eax, [eax + ecx*8]
test eax, eax
je 0x4b3af5
mov dword [eax], esi
mov dword [eax + 4], str.t_runtime
mov ecx, dword [0x505f64]
inc ecx
mov dword [0x505f64], ecx
lea ecx, [esi + 4]
mov dword [esi], vtable.ImmSingleton_class_t_runtime_.0
call fcn.004b0b60
mov dword [0x51dc64], esi
cmp byte [0x51b9a4], 0
je 0x4b3b2a
push 0x51b98c
call dword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
mov esi, dword [0x51dc64]
cmp byte [esi + 0x908], 0
je 0x4b3b65
cmp byte [esi + 0x90a], 0
je 0x4b3b65
mov ecx, dword [0x51bbf4]
test ecx, ecx
je 0x4b3b65
mov eax, dword [edi + 8]
mov edx, dword [ecx]
add eax, 4
push 5
push 0x4e8a4c
push dword [ebp + 0xc]
push eax
call dword [edx]
mov al, 1
pop edi
pop esi
mov esp, ebp
pop ebp
ret 0x14
push 4
mov dword [esp + 0x14], vtable.t_str.0
call fcn.0046c3ce
add esp, 4
mov dword [esp + 0x18], eax
lea ecx, [esp + 0x10]
mov dword [esp + 0x1c], 0
mov dword [eax], 0
call fcn.004a60e0
mov esi, dword [edi + 8]
lea eax, [esp + 0x10]
push 0x22
push 0x4e3cf4
push eax
call fcn.004a4cb0
add esp, 0xc
lea eax, [esi + 4]
push eax
lea eax, [esp + 0x14]
push 0x4e3d38
push eax
call fcn.004a4cb0
add esp, 0xc
lea eax, [esp + 0x10]
push 0x4e8f10
push 0x4e3d38
push eax
call fcn.004a4cb0
add esp, 0xc
lea eax, [esp + 0x10]
push dword [ebp + 0xc]
push 0x4e3d38
push eax
call fcn.004a4cb0
mov edx, dword [esp + 0x24]
add esp, 0xc
mov eax, dword [esp + 0x14]
inc eax
mov dword [esp + 0x1c], eax
mov esi, dword [edx]
cmp eax, esi
jbe 0x4b3c29
lea esi, [esi*2 + 0x10]
and esi, 0xfff0
cmp eax, esi
cmovae esi, eax
lea eax, [esi*2 + 4]
push eax
push edx
call fcn.00478579
mov edx, eax
add esp, 8
mov dword [esp + 0x18], edx
mov dword [edx], esi
push dword [ebp + 0x18]
mov ecx, dword [edi + 8]
lea eax, [edx + 4]
push dword [ebp + 0x14]
push 0
push 0
push dword [ebp + 0x10]
push 0
push 0
push 0
push eax
lea eax, [ecx + 4]
push eax
call dword [sym.imp.KERNEL32.dll_CreateProcessW]
lea ecx, [esp + 0x10]
mov esi, eax
call fcn.004a5520
test esi, esi
jne 0x4b3cca
mov esi, dword [edi + 8]
push 4
mov dword [esp + 0x24], vtable.t_str.0
call fcn.0046c3ce
add esp, 4
mov dword [esp + 0x28], eax
lea ecx, [esp + 0x20]
mov dword [esp + 0x2c], 0
mov dword [eax], 0
call fcn.004a60e0
lea eax, [esi + 4]
push eax
lea ecx, [esp + 0x24]
call fcn.004a5ed0
mov ecx, dword [ebp + 8]
lea eax, [esp + 0x20]
push eax
push 0x4e8f18
call fcn.004a7c10
mov ecx, eax
call fcn.004a71c0
mov eax, dword [esp + 0x28]
test eax, eax
je 0x4b3cc3
push eax
call fcn.00459651
add esp, 4
mov byte [esp + 0xf], 0
jmp 0x4b3ccf
mov byte [esp + 0xf], 1
mov eax, dword [esp + 0x18]
test eax, eax
je 0x4b3ce0
push eax
call fcn.00459651
add esp, 4
mov al, byte [esp + 0xf]
pop edi
pop esi
mov esp, ebp
pop ebp
ret 0x14