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

Disassembly:
mov eax, dword fs:[0]
push 0xffffffffffffffff
push 0x46df0b
push eax
mov dword fs:[0], esp
sub esp, 0x3a4
xor eax, eax
xor edx, edx
push ebx
push ebp
push esi
mov esi, ecx
push edi
lea ebx, [esi + 0x44]
mov byte [esi + 8], 0
mov ecx, ebx
lea edi, [esi + 0xc]
mov dword [ecx], eax
mov dword [ecx + 4], eax
lea eax, [esi + 0x4c]
xor ecx, ecx
mov dword [eax], edx
mov dword [eax + 4], edx
lea eax, [esi + 0x3c]
mov dword [esi + 0x3c], ecx
mov dword [eax + 4], ecx
xor eax, eax
mov ecx, edi
mov dword [esi + 0x38], eax
mov byte [esi + 0x28], al
mov dword [esi + 0x2c], eax
call fcn.00416380
mov ebp, dword [esp + 0x3c4]
mov byte [esi + 0x29], 0
test ebp, ebp
jne 0x440856
mov ecx, dword [esp + 0x3c8]
test ecx, ecx
je 0x44084f
mov edx, dword [ecx]
push str.loadFileInfoAnsi_failed:_no_filename
call dword [edx + 0x10]
xor al, al
jmp 0x440a64
push ebp
call dword [sym.imp.KERNEL32.dll_GetFileAttributesA]
cmp eax, 0xffffffff
jne 0x4408f6
mov edi, dword [esp + 0x3c8]
test edi, edi
je 0x4408a4
lea eax, [esp + 0x90]
push eax
push 0x320
call dword [sym.imp.KERNEL32.dll_GetCurrentDirectoryA]
mov edx, dword [edi]
lea eax, [esp + 0x90]
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]
lea eax, [esp + 0x10]
mov dword [esp + 0x10], 0
push eax
push ebp
call fcn.0041cb10
add esp, 8
test al, al
jne 0x4408de
test edi, edi
mov byte [esi + 8], 1
je 0x4408ef
mov eax, dword [esp + 0x10]
mov edx, dword [edi]
push eax
mov ecx, edi
call dword [edx + 0x38]
mov edx, dword [edi]
push str.File_does_not_exist.
mov ecx, edi
call dword [edx + 0x10]
test edi, edi
je 0x4408ef
mov eax, dword [edi]
push ebp
push str.filename
mov ecx, edi
call dword [eax + 0x28]
xor al, al
jmp 0x440a64
mov dword [esi + 0x38], eax
lea ecx, [esp + 0x30]
shr eax, 4
and al, 1
mov byte [esi + 0x28], al
call fcn.00419d20
push ebp
lea ecx, [esp + 0x34]
mov dword [esp + 0x3c0], 0
call fcn.00419f30
lea ecx, [esp + 0x30]
call fcn.0041a7a0
push eax
mov ecx, edi
call fcn.00417e70
mov al, byte [esi + 0x28]
mov edi, dword [esp + 0x3c8]
test al, al
push edi
je 0x44094b
lea ecx, [esp + 0x34]
push ecx
call fcn.0041bbe0
jmp 0x440955
lea edx, [esp + 0x34]
push edx
call fcn.0041ba20
mov ebp, eax
add esp, 8
cmp ebp, 0xffffffff
jne 0x44099e
test edi, edi
je 0x440983
mov eax, dword [edi]
push str.loadFileInfoAnsi_failed:_cannot_open_for_reading
mov ecx, edi
call dword [eax + 0x10]
mov eax, dword [esp + 0x3c4]
mov edx, dword [edi]
push eax
push str.filename
mov ecx, edi
call dword [edx + 0x28]
lea ecx, [esp + 0x30]
mov dword [esp + 0x3bc], 0xffffffff
call fcn.00419de0
xor al, al
jmp 0x440a64
lea ecx, [esp + 0x20]
lea edx, [esp + 0x18]
push ecx
lea eax, [esp + 0x2c]
push edx
push eax
push ebp
call dword [sym.imp.KERNEL32.dll_GetFileTime]
test eax, eax
jne 0x4409ff
test edi, edi
je 0x4409dc
mov edx, dword [edi]
push str.loadFileInfoAnsi_failed:_cannot_get_file_time
mov ecx, edi
call dword [edx + 0x10]
mov ecx, dword [esp + 0x3c4]
mov eax, dword [edi]
push ecx
push str.filename
mov ecx, edi
call dword [eax + 0x28]
push 0
push ebp
call fcn.0043cf40
add esp, 8
lea ecx, [esp + 0x30]
mov dword [esp + 0x3bc], 0xffffffff
call fcn.00419de0
xor al, al
jmp 0x440a64
mov edi, dword [sym.imp.KERNEL32.dll_FileTimeToLocalFileTime]
lea edx, [esp + 0x28]
push ebx
push edx
call edi
lea eax, [esi + 0x4c]
push eax
lea eax, [esp + 0x1c]
push eax
call edi
lea eax, [esi + 0x3c]
lea ecx, [esp + 0x20]
push eax
push ecx
call edi
lea edx, [esp + 0x14]
push edx
push ebp
call dword [sym.imp.KERNEL32.dll_GetFileSize]
mov ecx, dword [esp + 0x14]
mov dword [esi + 0x2c], eax
push ecx
push eax
call fcn.00440c80
push 0
mov dword [esi + 0x30], eax
push ebp
mov dword [esi + 0x34], edx
call fcn.0043cf40
add esp, 0x10
lea ecx, [esp + 0x30]
mov dword [esp + 0x3bc], 0xffffffff
call fcn.00419de0
mov al, 1
mov ecx, dword [esp + 0x3b4]
pop edi
pop esi
pop ebp
pop ebx
mov dword fs:[0], ecx
add esp, 0x3b0
ret 8