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

Disassembly:
push 0x64
mov eax, 0x4b802c
call fcn.004701a5
mov edi, ecx
mov eax, dword [edi + 0x40]
cmp dword [eax - 0xc], 0
je 0x431310
mov eax, dword [0x50b594]
cmp eax, 0x50b594
je 0x431309
test byte [eax + 0x1c], 2
je 0x431309
cmp byte [eax + 0x19], 5
jb 0x431309
push 0x4c5a00
push 0xb
push dword [eax + 0x14]
push dword [eax + 0x10]
call fcn.0041df22
add esp, 0x10
mov al, 1
jmp 0x431393
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 0x431379
push ebx
push ebx
push dword [edi + 4]
call dword [sym.imp.KERNEL32.dll_GetShortPathNameW]
mov esi, eax
test esi, esi
jne 0x431399
mov eax, dword [0x50b594]
cmp eax, 0x50b594
je 0x431379
test byte [eax + 0x1c], 1
je 0x431379
cmp byte [eax + 0x19], 2
jb 0x431379
call dword [sym.imp.KERNEL32.dll_GetLastError]
push eax
push 0x4c5a00
push 0xc
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 + 0x38]
push esi
call fcn.00402ef6
push esi
push eax
push dword [edi + 4]
call dword [sym.imp.KERNEL32.dll_GetShortPathNameW]
push 0xffffffffffffffff
lea ecx, [edi + 0x38]
mov dword [ebp - 0x38], eax
call fcn.00402db7
cmp dword [ebp - 0x38], 0
jne 0x4313eb
mov eax, dword [0x50b594]
cmp eax, 0x50b594
je 0x431379
test byte [eax + 0x1c], 1
je 0x431379
cmp byte [eax + 0x19], 2
jb 0x431379
call dword [sym.imp.KERNEL32.dll_GetLastError]
push eax
push 0x4c5a00
push 0xd
jmp 0x431366
push 0x508688
lea ecx, [ebp - 0x38]
call fcn.00401520
mov eax, dword [edi + 0x38]
lea ecx, [edi + 0x48]
mov esi, dword [eax - 0xc]
push esi
mov byte [ebp - 4], 2
call fcn.00402ef6
lea ecx, [edi + 0x44]
push esi
mov dword [ebp - 0x40], eax
call fcn.00402ef6
lea ecx, [edi + 0x3c]
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 + 0x38]
call fcn.004733d8
add esp, 0x24
lea ecx, [ebp - 0x38]
push 0xffffffffffffffff
mov esi, eax
call fcn.00402db7
push 0xffffffffffffffff
lea ecx, [edi + 0x3c]
call fcn.00402db7
push 0xffffffffffffffff
lea ecx, [edi + 0x44]
call fcn.00402db7
push 0xffffffffffffffff
lea ecx, [edi + 0x48]
call fcn.00402db7
test esi, esi
je 0x4314b4
mov eax, dword [0x50b594]
cmp eax, 0x50b594
je 0x4314a4
test byte [eax + 0x1c], 1
je 0x4314a4
cmp byte [eax + 0x19], 2
jb 0x4314a4
push esi
push 0x4c5a00
push 0xe
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 0x431389
push dword [edi + 0x3c]
mov esi, dword [ebp - 0x38]
push esi
mov ebx, str._s_s
lea eax, [edi + 0x40]
push ebx
push eax
call fcn.0040cf55
add esp, 0x10
push dword [edi + 0x48]
lea eax, [edi + 0x4c]
push dword [edi + 0x44]
push ebx
push eax
call fcn.0040cf55
add esp, 0x10
lea ecx, [esi - 0x10]
call fcn.00402199
jmp 0x431379