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

Disassembly:
mov eax, dword fs:[0]
push 0xffffffffffffffff
push 0x4917cb
push eax
mov dword fs:[0], esp
sub esp, 0x3d0
xor edx, edx
push ebx
push ebp
push esi
mov esi, ecx
xor ebx, ebx
xor ecx, ecx
lea eax, [esi + 0x5c]
mov byte [esi + 0x10], bl
mov byte [esi + 0x11], bl
push edi
mov dword [eax], ecx
lea edi, [esi + 0x18]
mov dword [eax + 4], ecx
lea eax, [esi + 0x64]
mov dword [esi + 0x64], edx
mov dword [eax + 4], edx
lea eax, [esi + 0x54]
mov dword [esi + 0x54], ecx
mov dword [eax + 4], ecx
mov ecx, edi
mov dword [esi + 0x50], ebx
mov byte [esi + 0x40], bl
mov dword [esi + 0x44], ebx
call fcn.0041ccb0
mov ebp, dword [esp + 0x3f0]
mov byte [esi + 0x41], bl
cmp ebp, ebx
jne 0x459ff4
mov ecx, dword [esp + 0x3f4]
cmp ecx, ebx
je 0x459fed
mov edx, dword [ecx]
push str.loadFileInfoAnsi_failed:_no_filename
call dword [edx + 0x10]
xor al, al
jmp 0x45a225
push ebp
call fcn.00453030
add esp, 4
cmp eax, 0xffffffff
jne 0x45a092
mov edi, dword [esp + 0x3f4]
cmp edi, ebx
je 0x45a044
lea eax, [esp + 0xbc]
push eax
push 0x320
call dword [sym.imp.KERNEL32.dll_GetCurrentDirectoryA]
mov edx, dword [edi]
lea eax, [esp + 0xbc]
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 + 0x14]
mov dword [esp + 0x14], ebx
push eax
push ebp
call fcn.00424de0
add esp, 8
test al, al
jne 0x45a07a
cmp edi, ebx
mov byte [esi + 0x10], 1
je 0x45a08b
mov eax, dword [esp + 0x14]
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]
cmp edi, ebx
je 0x45a08b
mov eax, dword [edi]
push ebp
push str.filename
mov ecx, edi
call dword [eax + 0x28]
xor al, al
jmp 0x45a225
mov dword [esi + 0x50], eax
lea ecx, [esp + 0x34]
shr eax, 4
and al, 1
mov byte [esi + 0x40], al
call fcn.00420f80
push ebp
lea ecx, [esp + 0x38]
mov dword [esp + 0x3ec], ebx
call fcn.004211d0
lea ecx, [esp + 0x34]
call fcn.00421e20
push eax
mov ecx, edi
call fcn.0041eb70
mov al, byte [esi + 0x40]
mov edi, dword [esp + 0x3f4]
cmp al, bl
push edi
je 0x45a0e8
lea ecx, [esp + 0x14]
lea edx, [esp + 0x38]
push ecx
push edx
call fcn.004239b0
jmp 0x45a0f7
lea eax, [esp + 0x14]
lea ecx, [esp + 0x38]
push eax
push ecx
call fcn.00423790
mov ebp, eax
add esp, 0xc
cmp ebp, 0xffffffff
jne 0x45a14b
cmp dword [esp + 0x10], 1
jne 0x45a10c
mov byte [esi + 0x11], 1
cmp edi, ebx
je 0x45a130
mov edx, dword [edi]
push str.loadFileInfoAnsi_failed:_cannot_open_for_reading
mov ecx, edi
call dword [edx + 0x10]
mov ecx, dword [esp + 0x3f0]
mov eax, dword [edi]
push ecx
push str.filename
mov ecx, edi
call dword [eax + 0x28]
lea ecx, [esp + 0x34]
mov dword [esp + 0x3e8], 0xffffffff
call fcn.00421050
xor al, al
jmp 0x45a225
lea edx, [esp + 0x24]
lea eax, [esp + 0x2c]
push edx
lea ecx, [esp + 0x20]
push eax
push ecx
push ebp
call dword [sym.imp.KERNEL32.dll_GetFileTime]
cmp eax, ebx
jne 0x45a1ab
cmp edi, ebx
je 0x45a189
mov edx, dword [edi]
push str.loadFileInfoAnsi_failed:_cannot_get_file_time
mov ecx, edi
call dword [edx + 0x10]
mov ecx, dword [esp + 0x3f0]
mov eax, dword [edi]
push ecx
push str.filename
mov ecx, edi
call dword [eax + 0x28]
push ebx
push ebp
call fcn.004563b0
add esp, 8
lea ecx, [esp + 0x34]
mov dword [esp + 0x3e8], 0xffffffff
call fcn.00421050
xor al, al
jmp 0x45a225
mov edi, dword [sym.imp.KERNEL32.dll_FileTimeToLocalFileTime]
lea eax, [esi + 0x5c]
lea edx, [esp + 0x1c]
push eax
push edx
call edi
lea eax, [esi + 0x64]
push eax
lea eax, [esp + 0x30]
push eax
call edi
lea eax, [esi + 0x54]
lea ecx, [esp + 0x24]
push eax
push ecx
call edi
cmp byte [esi + 0x40], bl
je 0x45a1e2
mov dword [esi + 0x48], ebx
mov dword [esi + 0x44], ebx
mov dword [esi + 0x4c], ebx
jmp 0x45a205
lea edx, [esp + 0x18]
push edx
push ebp
call dword [sym.imp.KERNEL32.dll_GetFileSize]
mov ecx, dword [esp + 0x18]
mov dword [esi + 0x44], eax
push ecx
push eax
call fcn.00457390
mov dword [esi + 0x48], eax
add esp, 8
mov dword [esi + 0x4c], edx
push ebx
push ebp
call fcn.004563b0
add esp, 8
lea ecx, [esp + 0x34]
mov dword [esp + 0x3e8], 0xffffffff
call fcn.00421050
mov al, 1
mov ecx, dword [esp + 0x3e0]
pop edi
pop esi
pop ebp
pop ebx
mov dword fs:[0], ecx
add esp, 0x3dc
ret 8