Function at 0x440500
Capabilities:
Get common file path
Get file size

Disassembly:
mov eax, dword fs:[0]
push 0xffffffffffffffff
push 0x4706db
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.00413a90
mov ebp, dword [esp + 0x3c4]
mov byte [esi + 0x29], 0
test ebp, ebp
jne 0x440586
mov ecx, dword [esp + 0x3c8]
test ecx, ecx
je 0x44057f
mov edx, dword [ecx]
push str.loadFileInfoAnsi_failed:_no_filename
call dword [edx + 0x10]
xor al, al
jmp 0x440796
push ebp
call fcn.0043d0c0
add esp, 4
cmp eax, 0xffffffff
jne 0x440628
mov edi, dword [esp + 0x3c8]
test edi, edi
je 0x4405d6
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.0041a5a0
add esp, 8
test al, al
jne 0x440610
test edi, edi
mov byte [esi + 8], 1
je 0x440621
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 0x440621
mov eax, dword [edi]
push ebp
push str.filename
mov ecx, edi
call dword [eax + 0x28]
xor al, al
jmp 0x440796
mov dword [esi + 0x38], eax
lea ecx, [esp + 0x30]
shr eax, 4
and al, 1
mov byte [esi + 0x28], al
call fcn.00417560
push ebp
lea ecx, [esp + 0x34]
mov dword [esp + 0x3c0], 0
call fcn.00417770
lea ecx, [esp + 0x30]
call fcn.00417fe0
push eax
mov ecx, edi
call fcn.00415650
mov al, byte [esi + 0x28]
mov edi, dword [esp + 0x3c8]
test al, al
push edi
je 0x44067d
lea ecx, [esp + 0x34]
push ecx
call fcn.00419650
jmp 0x440687
lea edx, [esp + 0x34]
push edx
call fcn.00419490
mov ebp, eax
add esp, 8
cmp ebp, 0xffffffff
jne 0x4406d0
test edi, edi
je 0x4406b5
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.00417620
xor al, al
jmp 0x440796
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 0x440731
test edi, edi
je 0x44070e
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.0043ca40
add esp, 8
lea ecx, [esp + 0x30]
mov dword [esp + 0x3bc], 0xffffffff
call fcn.00417620
xor al, al
jmp 0x440796
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.004409c0
push 0
mov dword [esi + 0x30], eax
push ebp
mov dword [esi + 0x34], edx
call fcn.0043ca40
add esp, 0x10
lea ecx, [esp + 0x30]
mov dword [esp + 0x3bc], 0xffffffff
call fcn.00417620
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