Function at 0x45d370
Capabilities:
Read file on windows

Disassembly:
sub esp, 0x5b0
push ebx
push ebp
push esi
push edi
lea eax, [esp + 0x70]
call fcn.00401610
mov ecx, dword [esp + 0x5c8]
mov eax, dword [esp + 0x5cc]
lea esi, [esp + 0x70]
call fcn.00462e90
test eax, eax
je 0x45d60f
xor ebp, ebp
mov dword [esp + 0x1c], 0x20
mov dword [esp + 0x14], ebp
mov dword [esp + 0x20], ebp
mov dword [esp + 0x18], ebp
mov dword [esp + 0x38], ebp
mov dword [esp + 0x2c], ebp
mov dword [esp + 0x30], ebp
mov dword [esp + 0x3c], 0x100
mov dword [esp + 0x34], ebp
call fcn.00451040
cmp dword [0x47c2f0], ebp
jne 0x45d60f
lea eax, [esp + 0x14]
push eax
lea ecx, [esp + 0x74]
push ecx
call fcn.004627c0
test eax, eax
je 0x45d563
push str.AccessCount
lea ebx, [esp + 0x18]
call fcn.00401740
push str.CreationTime
mov edi, eax
call fcn.00401740
push str.ExpiryTime
mov dword [esp + 0x28], eax
call fcn.00401740
push str.AccessedTime
mov ebp, eax
call fcn.00401740
push str.ModifiedTime
mov dword [esp + 0x2c], eax
call fcn.00401740
push 0x4709b8
mov dword [esp + 0x14], eax
call fcn.00401740
push str.EntryID
mov esi, eax
call fcn.00401740
push 0x2c
lea edx, [esp + 0x48]
push 0
push edx
mov ebx, eax
call sub.msvcrt.dll_memset
add esp, 0xc
push 0x46f57c
lea eax, [esp + 0x30]
push eax
or eax, 0xffffffff
call fcn.0045ec10
test esi, esi
je 0x45d4af
lea eax, [esp + 0x2c]
mov ecx, esi
call fcn.00461f50
mov eax, dword [esp + 0x2c]
test eax, eax
jne 0x45d495
mov eax, 0x46f57c
push 0x40
push eax
mov dword [esp + 0x70], eax
call sub.msvcrt.dll_wcschr
add esp, 8
test eax, eax
je 0x45d4af
add eax, 2
mov dword [esp + 0x68], eax
test edi, edi
je 0x45d4bd
mov ecx, dword [edi + 0x220]
mov dword [esp + 0x6c], ecx
test ebp, ebp
je 0x45d4d5
mov edx, dword [ebp + 0x220]
mov dword [esp + 0x60], edx
mov eax, dword [ebp + 0x224]
mov dword [esp + 0x64], eax
mov eax, dword [esp + 0x28]
test eax, eax
je 0x45d4f1
mov ecx, dword [eax + 0x220]
mov dword [esp + 0x58], ecx
mov edx, dword [eax + 0x224]
mov dword [esp + 0x5c], edx
mov eax, dword [esp + 0x24]
test eax, eax
je 0x45d50d
mov ecx, dword [eax + 0x220]
mov dword [esp + 0x48], ecx
mov edx, dword [eax + 0x224]
mov dword [esp + 0x4c], edx
mov eax, dword [esp + 0x10]
test eax, eax
je 0x45d529
mov ecx, dword [eax + 0x220]
mov dword [esp + 0x50], ecx
mov edx, dword [eax + 0x224]
mov dword [esp + 0x54], edx
test ebx, ebx
je 0x45d541
mov eax, dword [ebx + 0x220]
mov dword [esp + 0x40], eax
mov ecx, dword [ebx + 0x224]
mov dword [esp + 0x44], ecx
mov eax, dword [esp + 0x68]
test eax, eax
je 0x45d561
cmp word [eax], 0
je 0x45d561
mov ecx, dword [esp + 0x5c4]
mov edx, dword [ecx]
mov edx, dword [edx]
lea eax, [esp + 0x40]
push eax
call edx
xor ebp, ebp
mov eax, dword [esp + 0x80]
mov edi, dword [esp + 0x74]
add eax, 1
mov dword [esp + 0x80], eax
movzx ecx, word [edi + 0x22]
cmp eax, ecx
jl 0x45d5d2
mov eax, dword [edi + 0x14]
cmp eax, ebp
je 0x45d5e5
mov ecx, dword [esp + 0x2b8]
mov dword [esp + 0x70], eax
mov edx, dword [ecx + 0x418]
mov esi, dword [edx + 0xec]
add eax, 1
mul esi
push ebp
push ebp
push edx
push eax
mov eax, dword [ecx]
push eax
mov ebx, ecx
call dword [sym.imp.KERNEL32.dll_SetFilePointerEx]
mov edx, dword [ebx]
push ebp
lea ecx, [esp + 0x14]
push ecx
push esi
push edi
push edx
mov dword [esp + 0x24], ebp
call dword [sym.imp.KERNEL32.dll_ReadFile]
mov dword [esp + 0x80], 1
call fcn.00451040
cmp dword [0x47c2f0], ebp
je 0x45d3e1
jmp 0x45d5ed
sub dword [esp + 0x80], 1
mov eax, dword [esp + 0x2c]
cmp eax, ebp
je 0x45d5fe
push eax
call sub.msvcrt.dll_free
add esp, 4
mov eax, dword [esp + 0x14]
cmp eax, ebp
je 0x45d60f
push eax
call sub.msvcrt.dll_free
add esp, 4
lea edi, [esp + 0x70]
call fcn.00401670
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x5b0
ret 0xc