Function at 0x41deb3
Capabilities:
Check if file exists
Get common file path

Disassembly:
push 0x26c
mov eax, 0x4b0ccf
call fcn.0048cd14
xor edi, edi
mov dword [ebp - 4], edi
mov eax, dword [ebp + 8]
mov dword [ebp - 0x258], eax
mov eax, dword [ebp + 0xc]
push eax
lea ecx, [ebp - 0x234]
mov dword [ebp - 0x254], eax
mov dword [ebp - 0x25c], edi
call fcn.004040cf
xor ebx, ebx
inc ebx
mov dword [ebp - 4], ebx
push ebx
push 0x4c88b0
xor eax, eax
lea ecx, [ebp - 0x234]
call fcn.0041a74e
mov esi, eax
push ebx
lea eax, [ebp - 0x234]
call fcn.00420e7a
cmp eax, 0xffffffff
je 0x41df53
sub eax, esi
dec eax
push eax
inc esi
push esi
lea eax, [ebp - 0x278]
push eax
lea eax, [ebp - 0x234]
push eax
call fcn.0041a706
mov byte [ebp - 4], 2
push 0xffffffffffffffff
push edi
push eax
lea ecx, [ebp - 0x234]
call fcn.00405560
mov byte [ebp - 4], bl
push edi
push ebx
lea ecx, [ebp - 0x278]
call fcn.00405617
xor eax, eax
cmp dword [ebp - 0x21c], 8
mov word [ebp - 0x218], ax
mov eax, dword [ebp - 0x230]
jae 0x41df71
lea eax, [ebp - 0x230]
mov edi, 0x104
push edi
lea ecx, [ebp - 0x218]
push ecx
push eax
call dword [sym.imp.KERNEL32.dll_GetLongPathNameW]
test eax, eax
jne 0x41e14f
call dword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 2
jne 0x41e138
lea eax, [ebp - 0x234]
push eax
lea esi, [ebp - 0x250]
call fcn.004040f1
mov byte [ebp - 4], 3
and dword [ebp - 0x254], 0
mov dword [ebp - 0x26c], 0x4c5c28
mov dword [ebp - 0x268], str..exe
mov dword [ebp - 0x264], 0x4c88b4
mov dword [ebp - 0x260], str..com
cmp dword [ebp - 0x21c], 8
mov eax, dword [ebp - 0x230]
jae 0x41dff6
lea eax, [ebp - 0x230]
push eax
lea eax, [ebp - 0x218]
push edi
push eax
call fcn.004895de
mov eax, dword [ebp - 0x254]
mov esi, dword [ebp + eax*4 - 0x26c]
push esi
lea eax, [ebp - 0x218]
push edi
push eax
call fcn.0048a8b4
add esp, 0x18
push edi
lea eax, [ebp - 0x218]
push eax
push eax
call dword [sym.imp.KERNEL32.dll_GetLongPathNameW]
test eax, eax
jne 0x41e125
push edi
lea eax, [ebp - 0x218]
push eax
call dword [sym.imp.KERNEL32.dll_GetSystemDirectoryW]
push 0x4c5c2c
lea eax, [ebp - 0x218]
push edi
push eax
call fcn.0048a8b4
mov eax, dword [ebp - 0x230]
add esp, 0xc
cmp dword [ebp - 0x21c], 8
jae 0x41e071
lea eax, [ebp - 0x230]
push eax
lea eax, [ebp - 0x218]
push edi
push eax
call fcn.0048a8b4
push esi
lea eax, [ebp - 0x218]
push edi
push eax
call fcn.0048a8b4
add esp, 0x18
lea ecx, [ebp - 0x218]
call fcn.0041dd2a
test al, al
jne 0x41e125
push edi
lea eax, [ebp - 0x218]
push eax
call dword [sym.imp.KERNEL32.dll_GetWindowsDirectoryW]
push 0x4c5c2c
lea eax, [ebp - 0x218]
push edi
push eax
call fcn.0048a8b4
mov eax, dword [ebp - 0x230]
add esp, 0xc
cmp dword [ebp - 0x21c], 8
jae 0x41e0db
lea eax, [ebp - 0x230]
push eax
lea eax, [ebp - 0x218]
push edi
push eax
call fcn.0048a8b4
push esi
lea eax, [ebp - 0x218]
push edi
push eax
call fcn.0048a8b4
add esp, 0x18
lea ecx, [ebp - 0x218]
call fcn.0041dd2a
test al, al
jne 0x41e125
xor eax, eax
inc dword [ebp - 0x254]
cmp dword [ebp - 0x254], 3
mov word [ebp - 0x218], ax
jle 0x41dfe1
mov byte [ebp - 4], bl
push 0
push ebx
lea ecx, [ebp - 0x250]
call fcn.00405617
jmp 0x41e14f
push edi
push dword [ebp - 0x254]
lea eax, [ebp - 0x218]
push edi
push eax
call fcn.0048a797
add esp, 0x10
mov ecx, dword [ebp - 0x258]
lea eax, [ebp - 0x218]
push eax
call fcn.004040cf
mov dword [ebp - 0x25c], ebx
mov byte [ebp - 4], 0
push 0
push ebx
lea ecx, [ebp - 0x234]
call fcn.00405617
mov eax, dword [ebp - 0x258]
call fcn.0048cd97
ret