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

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x531575
mov eax, dword fs:[0]
push eax
sub esp, 0x128
mov eax, dword [0x590cc0]
xor eax, ebp
mov dword [ebp - 0x10], eax
push ebx
push esi
push edi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov esi, dword [ebp + 8]
mov eax, dword [ebp + 0xc]
mov ebx, dword [ebp + 0x10]
xor edi, edi
mov dword [ebp - 0xd8], edi
mov dword [ebp - 0xdc], eax
mov dword [ebp - 0xe0], ebx
cmp dword [esi + 0x10], edi
je 0x4b1bdd
cmp dword [esi + 0x14], 8
jb 0x4b191e
mov eax, dword [esi]
jmp 0x4b1920
mov eax, esi
push eax
call dword [sym.imp.KERNEL32.DLL_GetFileAttributesW]
cmp eax, 0xffffffff
je 0x4b1bdd
test al, 0x10
jne 0x4b1bdd
xor ecx, ecx
mov dword [ebp - 0x50], 7
mov dword [ebp - 0x54], edi
mov word [ebp - 0x64], cx
push 1
push edi
push 0x53e978
mov ecx, esi
mov dword [ebp - 4], edi
call fcn.00408330
cmp eax, 0xffffffff
je 0x4b1b45
push 0x542a7c
lea ecx, [ebp - 0x48]
call fcn.00402580
lea edx, [ebp - 0x48]
push edx
push esi
mov byte [ebp - 4], 1
call fcn.004ad900
add esp, 8
test al, al
je 0x4b199c
push esi
lea ecx, [ebp - 0x9c]
call fcn.00402550
mov byte [ebp - 4], 2
mov ebx, 1
jmp 0x4b19fa
push 0x542a7c
lea ecx, [ebp - 0xb8]
call fcn.00402580
push esi
push eax
lea eax, [ebp - 0xd4]
push eax
mov dword [ebp - 4], 3
mov dword [ebp - 0xd8], 2
call fcn.0040d430
push 0x542a7c
push eax
lea ecx, [ebp - 0x80]
push ecx
mov dword [ebp - 4], 4
mov dword [ebp - 0xd8], 6
call fcn.00402b90
add esp, 0x18
mov dword [ebp - 4], 5
mov ebx, 0xe
push eax
lea ecx, [ebp - 0x64]
mov dword [ebp - 0xd8], ebx
call fcn.00402630
test bl, 8
je 0x4b1a19
lea ecx, [ebp - 0x80]
and ebx, 0xfffffff7
call fcn.0051c7a0
test bl, 4
je 0x4b1a2c
lea ecx, [ebp - 0xd4]
and ebx, 0xfffffffb
call fcn.0051c7a0
test bl, 2
je 0x4b1a3f
lea ecx, [ebp - 0xb8]
and ebx, 0xfffffffd
call fcn.0051c7a0
mov dword [ebp - 4], 1
test bl, 1
je 0x4b1a56
lea ecx, [ebp - 0x9c]
call fcn.0051c7a0
cmp dword [ebp - 0x34], 8
mov byte [ebp - 4], 0
jb 0x4b1a6c
mov edx, dword [ebp - 0x48]
push edx
call fcn.004b9008
add esp, 4
mov ebx, dword [ebp - 0xe0]
push 0x53e978
lea eax, [ebp - 0x64]
push eax
lea ecx, [ebp - 0x48]
push ecx
call fcn.0040d560
mov edx, dword [ebp - 0xdc]
push edx
push eax
lea eax, [ebp - 0x2c]
push eax
mov byte [ebp - 4], 6
call fcn.0040d430
add esp, 0x18
mov esi, 8
mov byte [ebp - 4], 8
cmp dword [ebp - 0x34], esi
jb 0x4b1ab6
mov ecx, dword [ebp - 0x48]
push ecx
call fcn.004b9008
add esp, 4
mov ecx, dword [ebp - 0x1c]
lea eax, [ebp - 0xdc]
inc ecx
push eax
xor edx, edx
push ecx
lea ecx, [ebp - 0x74]
mov dword [ebp - 0x34], 7
mov dword [ebp - 0x38], edi
mov word [ebp - 0x48], dx
mov dword [ebp - 0xdc], edi
mov dword [ebp - 0x74], edi
mov dword [ebp - 0x70], edi
mov dword [ebp - 0x6c], edi
call fcn.0048aeb0
mov eax, dword [ebp - 0x2c]
cmp dword [ebp - 0x18], esi
jae 0x4b1af4
lea eax, [ebp - 0x2c]
mov esi, dword [ebp - 0x74]
mov edx, dword [ebp - 0x70]
sub edx, esi
push eax
sar edx, 1
push edx
push esi
call fcn.004bd49e
xor eax, eax
push 0x40
mov dword [ebp - 0xec], eax
mov dword [ebp - 0xe8], eax
mov dword [ebp - 0xe4], eax
lea eax, [ebp - 0x130]
push edi
push eax
mov dword [ebp - 0xf0], edi
mov dword [ebp - 0x134], 0x44
call fcn.004ba010
add esp, 0x18
cmp dword [ebx + 0x10], edi
jne 0x4b1b56
xor eax, eax
jmp 0x4b1b62
push 0xffffffffffffffff
push edi
push esi
lea ecx, [ebp - 0x64]
call fcn.00402240
jmp 0x4b1a72
cmp dword [ebx + 0x14], 8
jb 0x4b1b60
mov eax, dword [ebx]
jmp 0x4b1b62
mov eax, ebx
lea ecx, [ebp - 0xf0]
push ecx
lea edx, [ebp - 0x134]
push edx
push eax
push edi
push edi
push edi
push edi
push edi
push esi
push edi
call dword [sym.imp.KERNEL32.DLL_CreateProcessW]
test eax, eax
je 0x4b1b8f
mov eax, dword [ebp - 0xec]
push eax
call dword [sym.imp.KERNEL32.DLL_CloseHandle]
mov ebx, dword [ebp - 0xf0]
cmp esi, edi
je 0x4b1ba2
push esi
call fcn.004b9008
add esp, 4
mov esi, 8
cmp dword [ebp - 0x18], esi
jb 0x4b1bb8
mov ecx, dword [ebp - 0x2c]
push ecx
call fcn.004b9008
add esp, 4
xor edx, edx
mov dword [ebp - 0x18], 7
mov dword [ebp - 0x1c], edi
mov word [ebp - 0x2c], dx
cmp dword [ebp - 0x50], esi
jb 0x4b1bd9
mov eax, dword [ebp - 0x64]
push eax
call fcn.004b9008
add esp, 4
mov eax, ebx
jmp 0x4b1bdf
xor eax, eax
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 0x10]
xor ecx, ebp
call fcn.004b9ff3
mov esp, ebp
pop ebp
ret