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

Disassembly:
push 0xffffffffffffffff
push 0x43762b
mov eax, dword fs:[0]
push eax
sub esp, 0x368
mov eax, dword [0x449250]
xor eax, esp
mov dword [esp + 0x360], eax
push ebx
push ebp
push esi
push edi
mov eax, dword [0x449250]
xor eax, esp
push eax
lea eax, [esp + 0x37c]
mov dword fs:[0], eax
mov eax, dword [esp + 0x38c]
lea edi, [esp + 0x24c]
mov ebx, ecx
mov dword [esp + 0x18], eax
call fcn.0040bd50
xor ebp, ebp
cmp dword [esp + 0x36c], ebp
je 0x407fb6
mov dword [esp + 0x36c], ebp
mov ecx, 1
lea esi, [esp + 0x254]
mov dword [esp + 0x250], ebp
call fcn.0040c6d0
cmp byte [esp + 0x368], 0
lea eax, [esp + 0x258]
jne 0x407fe6
mov eax, dword [esp + 0x254]
xor ecx, ecx
mov word [eax + 4], cx
lea edi, [esp + 0x124]
mov dword [esp + 0x384], ebp
call fcn.0040bd50
cmp dword [esp + 0x244], ebp
je 0x40800f
mov dword [esp + 0x244], ebp
mov ecx, 1
lea esi, [esp + 0x12c]
mov dword [esp + 0x128], ebp
call fcn.0040c6d0
cmp byte [esp + 0x240], 0
lea eax, [esp + 0x130]
jne 0x40803f
mov eax, dword [esp + 0x12c]
xor edx, edx
mov word [eax + 4], dx
lea ecx, [esp + 0x124]
push ecx
mov ecx, dword [esp + 0x1c]
lea edx, [esp + 0x250]
mov byte [esp + 0x388], 1
mov eax, dword [ebx]
push edx
mov edx, dword [eax + 0x1c]
push ecx
mov ecx, ebx
call edx
test al, al
jne 0x4080d2
mov esi, vtable.t_str.0
mov dword [esp + 0x124], esi
cmp byte [esp + 0x240], al
jne 0x40809f
mov eax, dword [esp + 0x12c]
lea ecx, [esp + 0x130]
cmp eax, ecx
je 0x40809f
push eax
call fcn.004229f3
add esp, 4
cmp byte [esp + 0x368], 0
mov dword [esp + 0x24c], esi
jne 0x4080cb
mov eax, dword [esp + 0x254]
lea edx, [esp + 0x258]
cmp eax, edx
je 0x4080cb
push eax
call fcn.004229f3
add esp, 4
xor al, al
jmp 0x4082d0
cmp byte [esp + 0x368], 0
lea eax, [esp + 0x258]
jne 0x4080ea
mov eax, dword [esp + 0x254]
add eax, 4
push eax
call dword [sym.imp.KERNEL32.DLL_GetFileAttributesW]
cmp eax, 0xffffffff
je 0x4081e8
shr eax, 4
not al
and al, 1
je 0x4081e8
cmp byte [ebx + 0x9a3], 0
lea edx, [esp + 0x3c]
sete al
movzx ecx, al
push ecx
push edx
call fcn.0040ff40
mov byte [esp + 0x384], 2
cmp byte [esp + 0x368], 0
lea eax, [esp + 0x258]
jne 0x408142
mov eax, dword [esp + 0x254]
add eax, 4
push eax
lea ecx, [esp + 0x40]
call fcn.0040f7d0
mov dword [esp + 0x1c], ebp
mov dword [esp + 0x20], ebp
mov dword [esp + 0x24], ebp
mov dword [esp + 0x28], ebp
mov dword [esp + 0x2c], fcn.00424233
mov dword [esp + 0x30], fcn.004245d8
mov dword [esp + 0x34], fcn.004229f3
mov dword [esp + 0x38], ebp
lea eax, [esp + 0x1c]
push eax
lea ecx, [esp + 0x40]
mov byte [esp + 0x388], 3
call fcn.004102b0
mov ebp, dword [esp + 0x38]
xor edi, edi
test ebp, ebp
jle 0x4081c5
mov ecx, dword [esp + 0x1c]
mov dword [esp + 0x18], ecx
test edi, edi
jl 0x4081b1
cmp edi, ebp
jge 0x4081b1
mov esi, dword [esp + 0x18]
jmp 0x4081b3
xor esi, esi
call fcn.00408430
add dword [esp + 0x18], 0x3a4
inc edi
cmp edi, ebp
jl 0x4081a3
lea esi, [esp + 0x1c]
mov byte [esp + 0x384], 2
call fcn.00409bc0
lea edx, [esp + 0x3c]
push edx
mov byte [esp + 0x388], 1
call fcn.00408300
cmp byte [esp + 0x240], 0
lea eax, [esp + 0x130]
jne 0x408200
mov eax, dword [esp + 0x12c]
add eax, 4
push eax
call dword [sym.imp.KERNEL32.DLL_GetFileAttributesW]
cmp eax, 0xffffffff
je 0x408271
shr eax, 4
not al
and al, 1
je 0x408271
lea eax, [esp + 0x3c]
push eax
call fcn.004105e0
mov byte [esp + 0x384], 4
cmp byte [esp + 0x240], 0
lea eax, [esp + 0x130]
jne 0x408242
mov eax, dword [esp + 0x12c]
add eax, 4
push eax
lea ecx, [esp + 0x40]
call fcn.0040f7d0
add ebx, 0x1c00
push ebx
lea ecx, [esp + 0x40]
call fcn.00410790
lea ecx, [esp + 0x3c]
push ecx
mov byte [esp + 0x388], 1
call fcn.00408380
cmp byte [esp + 0x240], 0
mov esi, vtable.t_str.0
mov dword [esp + 0x124], esi
jne 0x4082a2
mov eax, dword [esp + 0x12c]
lea edx, [esp + 0x130]
cmp eax, edx
je 0x4082a2
push eax
call fcn.004229f3
add esp, 4
cmp byte [esp + 0x368], 0
mov dword [esp + 0x24c], esi
jne 0x4082ce
mov eax, dword [esp + 0x254]
lea ecx, [esp + 0x258]
cmp eax, ecx
je 0x4082ce
push eax
call fcn.004229f3
add esp, 4
mov al, 1
mov ecx, dword [esp + 0x37c]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebp
pop ebx
mov ecx, dword [esp + 0x360]
xor ecx, esp
call fcn.004223b0
add esp, 0x374
ret 4