Function at 0x4315c9
Capabilities:
Check if file exists
Get file attributes

Disassembly:
push 0x64
mov eax, 0x4b8061
call fcn.004701a5
mov edi, ecx
mov eax, dword [edi + 0x28]
cmp dword [eax - 0xc], 0
je 0x431614
mov eax, dword [0x50b594]
cmp eax, 0x50b594
je 0x43160d
test byte [eax + 0x1c], 2
je 0x43160d
cmp byte [eax + 0x19], 5
jb 0x43160d
push 0x4c5a00
push 0xf
push dword [eax + 0x14]
push dword [eax + 0x10]
call fcn.0041df22
add esp, 0x10
mov al, 1
jmp 0x431697
lea ecx, [ebp - 0x68]
call fcn.00426a1a
push dword [edi + 4]
xor ebx, ebx
mov dword [ebp - 4], ebx
mov byte [ebp - 4], 1
call dword [sym.imp.KERNEL32.dll_GetFileAttributesW]
cmp eax, 0xffffffff
je 0x43167d
push ebx
push ebx
push dword [edi + 4]
call dword [sym.imp.KERNEL32.dll_GetLongPathNameW]
mov esi, eax
test esi, esi
jne 0x43169d
mov eax, dword [0x50b594]
cmp eax, 0x50b594
je 0x43167d
test byte [eax + 0x1c], 1
je 0x43167d
cmp byte [eax + 0x19], 2
jb 0x43167d
call dword [sym.imp.KERNEL32.dll_GetLastError]
push eax
push 0x4c5a00
push 0x10
mov eax, dword [0x50b594]
push dword [eax + 0x14]
push dword [eax + 0x10]
call fcn.0041e118
add esp, 0x14
lea ecx, [ebp - 0x68]
call fcn.00426c16
neg al
sbb al, al
inc al
mov bl, al
lea ecx, [ebp - 0x68]
call fcn.00426a56
mov al, bl
call fcn.004700f7
ret
lea ecx, [edi + 0x20]
push esi
call fcn.00402ef6
push esi
push eax
push dword [edi + 4]
call dword [sym.imp.KERNEL32.dll_GetLongPathNameW]
push 0xffffffffffffffff
lea ecx, [edi + 0x20]
mov dword [ebp - 0x38], eax
call fcn.00402db7
cmp dword [ebp - 0x38], 0
jne 0x4316ef
mov eax, dword [0x50b594]
cmp eax, 0x50b594
je 0x43167d
test byte [eax + 0x1c], 1
je 0x43167d
cmp byte [eax + 0x19], 2
jb 0x43167d
call dword [sym.imp.KERNEL32.dll_GetLastError]
push eax
push 0x4c5a00
push 0x11
jmp 0x43166a
push 0x508688
lea ecx, [ebp - 0x38]
call fcn.00401520
mov eax, dword [edi + 0x20]
lea ecx, [edi + 0x30]
mov esi, dword [eax - 0xc]
push esi
mov byte [ebp - 4], 2
call fcn.00402ef6
lea ecx, [edi + 0x2c]
push esi
mov dword [ebp - 0x40], eax
call fcn.00402ef6
lea ecx, [edi + 0x24]
push esi
mov dword [ebp - 0x44], eax
call fcn.00402ef6
push esi
lea ecx, [ebp - 0x38]
mov dword [ebp - 0x3c], eax
call fcn.00402ef6
push esi
push dword [ebp - 0x40]
push esi
push dword [ebp - 0x44]
push esi
push dword [ebp - 0x3c]
push esi
push eax
push dword [edi + 0x20]
call fcn.004733d8
add esp, 0x24
lea ecx, [ebp - 0x38]
push 0xffffffffffffffff
mov esi, eax
call fcn.00402db7
push 0xffffffffffffffff
lea ecx, [edi + 0x24]
call fcn.00402db7
push 0xffffffffffffffff
lea ecx, [edi + 0x2c]
call fcn.00402db7
push 0xffffffffffffffff
lea ecx, [edi + 0x30]
call fcn.00402db7
test esi, esi
je 0x4317b8
mov eax, dword [0x50b594]
cmp eax, 0x50b594
je 0x4317a8
test byte [eax + 0x1c], 1
je 0x4317a8
cmp byte [eax + 0x19], 2
jb 0x4317a8
push esi
push 0x4c5a00
push 0x12
push dword [eax + 0x14]
push dword [eax + 0x10]
call fcn.0041e118
add esp, 0x14
mov ecx, dword [ebp - 0x38]
lea ecx, [ecx - 0x10]
call fcn.00402199
jmp 0x43168d
push dword [edi + 0x24]
mov esi, dword [ebp - 0x38]
push esi
mov ebx, str._s_s
lea eax, [edi + 0x28]
push ebx
push eax
call fcn.0040cf55
add esp, 0x10
push dword [edi + 0x30]
lea eax, [edi + 0x34]
push dword [edi + 0x2c]
push ebx
push eax
call fcn.0040cf55
add esp, 0x10
lea ecx, [esi - 0x10]
call fcn.00402199
jmp 0x43167d