Function at 0x45a6e6
Capabilities:
Get file attributes
Get file size
Read file on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x34
push ebx
push esi
xor ebx, ebx
push 0x7c
mov dword [ebp - 4], ebx
call fcn.00490944
mov esi, eax
pop ecx
cmp esi, ebx
je 0x45a72c
push dword [ebp + 8]
lea eax, [ebp - 0x18]
mov dword [ebp - 4], 1
push eax
call fcn.00410f68
mov eax, dword [eax]
pop ecx
pop ecx
push ebx
push eax
call fcn.00459b84
pop ecx
push eax
mov ecx, esi
call fcn.00412c92
mov esi, eax
jmp 0x45a72e
xor esi, esi
test byte [ebp - 4], 1
je 0x45a73c
lea ecx, [ebp - 0x18]
call fcn.00401085
cmp esi, ebx
jne 0x45a747
xor eax, eax
jmp 0x45a8ed
push dword [ebp + 8]
call dword [sym.imp.KERNEL32.dll_GetFileAttributesW]
and eax, 1
cmp al, 1
jne 0x45a760
push 1
mov ecx, esi
call fcn.00413b09
push edi
push ebx
push ebx
push 3
push ebx
push ebx
push 0x80000000
mov byte [ebp - 0x24], bl
push dword [ebp + 8]
mov dword [ebp - 0x20], ebx
call dword [sym.imp.KERNEL32.dll_CreateFileW]
cmp eax, 0xffffffff
mov dword [ebp - 8], eax
jne 0x45a78a
xor esi, esi
jmp 0x45a8e2
push ebx
push eax
mov dword [ebp - 0x10], eax
call dword [sym.imp.KERNEL32.dll_GetFileSize]
mov edi, eax
cmp edi, ebx
je 0x45a8d8
push 1
push edi
call fcn.0045a936
pop ecx
cmp eax, ebx
pop ecx
mov dword [esi + 0x70], eax
je 0x45a8d8
lea eax, [ebp - 0x14]
push ebx
push eax
push edi
mov dword [ebp - 0x14], ebx
push dword [esi + 0x70]
push dword [ebp - 8]
call dword [sym.imp.KERNEL32.dll_ReadFile]
test eax, eax
je 0x45a8d8
mov eax, dword [ebp - 0x14]
cmp edi, eax
jne 0x45a8d8
mov dword [esi + 0x74], eax
xor eax, eax
lea edi, [ebp - 0x18]
mov dword [ebp - 0x1c], ebx
stosd dword es:[edi], eax
lea eax, [ebp - 0xc]
push eax
lea eax, [ebp - 0xc]
push eax
lea eax, [ebp - 0x1c]
push eax
push dword [ebp - 8]
call dword [sym.imp.KERNEL32.dll_GetFileTime]
lea eax, [esi + 0x5c]
push eax
lea eax, [ebp - 0x1c]
push eax
call dword [sym.imp.KERNEL32.dll_FileTimeToSystemTime]
push dword [ebp + 8]
mov ecx, esi
mov byte [ebp - 0x24], bl
push 1
call fcn.0045a8f1
cmp dword [ebp + 0x10], ebx
je 0x45a8c7
mov edi, 0x4bf60c
push edi
call fcn.004916e0
pop ecx
push eax
push edi
mov ecx, esi
call fcn.00409b5b
push dword [ebp + 0x10]
lea ecx, [ebp - 0x18]
call fcn.004064a9
push dword [ebp - 0x18]
lea eax, [ebp - 8]
push eax
call fcn.0045acb2
mov eax, dword [ebp - 8]
pop ecx
pop ecx
cmp dword [eax - 8], ebx
je 0x45a8b7
lea eax, [ebp - 8]
push eax
push ebx
push dword [ebp + 8]
lea eax, [ebp + 0x10]
push eax
call fcn.00411030
add esp, 0xc
push eax
lea eax, [ebp + 8]
push eax
call fcn.0040665f
push eax
lea ecx, [ebp - 8]
call fcn.004065e8
lea ecx, [ebp + 8]
call fcn.00401085
lea ecx, [ebp + 0x10]
call fcn.00401085
push dword [ebp - 8]
lea eax, [ebp - 0x34]
push eax
call fcn.0045ab71
pop ecx
pop ecx
push dword [0x4a17b8]
mov ecx, esi
push ebx
push eax
call fcn.004099fb
push 1
lea ecx, [ebp - 0x34]
call fcn.00409ac9
lea ecx, [ebp - 8]
call fcn.00401085
lea ecx, [ebp - 0x18]
call fcn.00401085
cmp dword [ebp - 0x10], 0xffffffff
je 0x45a8e2
push dword [ebp - 0x10]
call dword [sym.imp.KERNEL32.dll_CloseHandle]
jmp 0x45a8e2
lea ecx, [ebp - 0x10]
xor esi, esi
call fcn.0045ad77
lea ecx, [ebp - 0x24]
call fcn.0045ad86
mov eax, esi
pop edi
pop esi
pop ebx
leave
ret