Function at 0x416a80
Capabilities:
Check if file exists
Get common file path
Get file attributes
Get file size

Disassembly:
mov eax, dword fs:[0]
push 0xffffffffffffffff
push 0x43bf4b
push eax
mov dword fs:[0], esp
sub esp, 0x380
xor edx, edx
push ebx
push ebp
push esi
mov esi, ecx
xor ebx, ebx
xor ecx, ecx
lea eax, [esi + 0x3c]
mov byte [esi + 8], bl
push edi
lea edi, [esi + 0xc]
mov dword [eax], ecx
mov dword [eax + 4], ecx
lea eax, [esi + 0x44]
mov dword [esi + 0x44], edx
mov dword [eax + 4], edx
lea eax, [esi + 0x34]
mov dword [esi + 0x34], ecx
mov dword [eax + 4], ecx
mov ecx, edi
mov dword [esi + 0x4c], ebx
mov byte [esi + 0x28], bl
mov dword [esi + 0x2c], ebx
call fcn.00402510
mov ebp, dword [esp + 0x3a0]
mov byte [esi + 0x29], bl
cmp ebp, ebx
jne 0x416b01
mov ecx, dword [esp + 0x3a4]
cmp ecx, ebx
je 0x416afa
mov edx, dword [ecx]
push str.loadFileInfoAnsi_failed:_no_filename
call dword [edx + 0x10]
xor al, al
jmp 0x416cb2
push ebp
call dword [sym.imp.KERNEL32.dll_GetFileAttributesA]
cmp eax, 0xffffffff
jne 0x416b7f
mov edi, dword [esp + 0x3a4]
cmp edi, ebx
je 0x416b45
lea eax, [esp + 0x6c]
push eax
push 0x320
call dword [sym.imp.KERNEL32.dll_GetCurrentDirectoryA]
mov edx, dword [edi]
lea eax, [esp + 0x6c]
push eax
push str.curDir
mov ecx, edi
call dword [edx + 0x28]
mov edx, dword [edi]
push str.loadFileInfoAnsi_failed:_cannot_get_attributes
mov ecx, edi
call dword [edx + 0x10]
push edi
push ebp
call fcn.00406060
add esp, 8
test al, al
jne 0x416b67
cmp edi, ebx
mov byte [esi + 8], 1
je 0x416b78
mov eax, dword [edi]
push str.File_does_not_exist.
mov ecx, edi
call dword [eax + 0x10]
cmp edi, ebx
je 0x416b78
mov edx, dword [edi]
push ebp
push str.filename
mov ecx, edi
call dword [edx + 0x28]
xor al, al
jmp 0x416cb2
mov dword [esi + 0x4c], eax
lea ecx, [esp + 0x10]
shr eax, 4
and al, 1
mov byte [esi + 0x28], al
call fcn.00404670
push ebp
lea ecx, [esp + 0x14]
mov dword [esp + 0x39c], ebx
call fcn.00404850
lea ecx, [esp + 0x10]
call fcn.00404f90
push eax
mov ecx, edi
call fcn.00402f90
mov al, byte [esi + 0x28]
mov ebp, dword [esp + 0x3a4]
cmp al, bl
push ebp
je 0x416bd0
lea eax, [esp + 0x14]
push eax
call fcn.00405920
jmp 0x416bda
lea ecx, [esp + 0x14]
push ecx
call fcn.004057b0
mov edi, eax
add esp, 8
cmp edi, 0xffffffff
jne 0x416c25
cmp ebp, ebx
je 0x416c0a
mov edx, dword [ebp]
push str.loadFileInfoAnsi_failed:_cannot_open_for_reading
mov ecx, ebp
call dword [edx + 0x10]
mov ecx, dword [esp + 0x3a0]
mov eax, dword [ebp]
push ecx
push str.filename
mov ecx, ebp
call dword [eax + 0x28]
lea ecx, [esp + 0x10]
mov dword [esp + 0x398], 0xffffffff
call fcn.00404730
xor al, al
jmp 0x416cb2
lea eax, [esi + 0x34]
push eax
lea eax, [esi + 0x44]
push eax
lea eax, [esi + 0x3c]
push eax
push edi
call dword [sym.imp.KERNEL32.dll_GetFileTime]
cmp eax, ebx
jne 0x416c84
cmp ebp, ebx
je 0x416c62
mov edx, dword [ebp]
push str.loadFileInfoAnsi_failed:_cannot_get_file_time
mov ecx, ebp
call dword [edx + 0x10]
mov ecx, dword [esp + 0x3a0]
mov eax, dword [ebp]
push ecx
push str.filename
mov ecx, ebp
call dword [eax + 0x28]
push ebx
push edi
call fcn.00412e70
add esp, 8
lea ecx, [esp + 0x10]
mov dword [esp + 0x398], 0xffffffff
call fcn.00404730
xor al, al
jmp 0x416cb2
lea edx, [esi + 0x30]
push edx
push edi
call dword [sym.imp.KERNEL32.dll_GetFileSize]
push ebx
push edi
mov dword [esi + 0x2c], eax
call fcn.00412e70
add esp, 8
lea ecx, [esp + 0x10]
mov dword [esp + 0x398], 0xffffffff
call fcn.00404730
mov al, 1
mov ecx, dword [esp + 0x390]
pop edi
pop esi
pop ebp
pop ebx
mov dword fs:[0], ecx
add esp, 0x38c
ret 8