Function at 0x454820
Capabilities:
Read file on windows

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x4c5b35
mov eax, dword fs:[0]
push eax
mov eax, 0x10ac
call fcn.0049d600
mov eax, dword [0x5210b0]
xor eax, ebp
mov dword [ebp - 0x10], eax
push ebx
push esi
push edi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov edi, edx
mov ebx, ecx
mov dword [ebp - 0x10ac], ebx
mov dword [ebp - 0x10b4], 0
mov dword [ebp - 0x10b8], ebx
mov dword [ebp - 0x1050], 0x4e1680
mov dword [ebp - 0x1028], 0x4e1670
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov dword [ebp - 0x1024], eax
mov dword [ebp - 4], 1
xor eax, eax
mov dword [ebp - 0x103c], 0
mov dword [ebp - 0x1038], 0
mov dword [ebp - 0x1038], 7
mov dword [ebp - 0x103c], 0
mov word [ebp - 0x104c], ax
mov byte [ebp - 4], 2
mov dword [ebp - 0x1034], eax
mov dword [ebp - 0x1030], eax
mov dword [ebp - 0x102c], eax
mov byte [ebp - 4], 3
mov eax, dword [ebp - 0x1028]
mov eax, dword [eax + 4]
push dword [ebp + eax - 0x1028]
call dword [sym.imp.KERNEL32.dll_SetLastError]
mov dword [ebp - 4], 6
or esi, 0xffffffff
mov dword [ebp - 0x10b0], esi
mov byte [ebp - 4], 7
add edi, 4
cmp dword [edi + 0x14], 8
jb 0x454913
mov edi, dword [edi]
push 0
push 0x80
push 3
push 0
push 1
push SysReAllocString
push edi
call dword [sym.imp.KERNEL32.dll_CreateFileW]
mov edi, eax
cmp edi, 0xffffffff
je 0x454a09
lea eax, [ebp - 0x10a8]
mov esi, edi
push eax
mov dword [ebp - 0x10b0], esi
call fcn.0049a138
add esp, 4
mov edi, edi
push 0
lea eax, [ebp - 0x10ac]
push eax
push 0x1000
lea eax, [ebp - 0x1020]
push eax
push edi
call dword [sym.imp.KERNEL32.dll_ReadFile]
test eax, eax
je 0x454995
push dword [ebp - 0x10ac]
lea eax, [ebp - 0x1020]
push eax
lea eax, [ebp - 0x10a8]
push eax
call fcn.0049a833
add esp, 0xc
cmp dword [ebp - 0x10ac], 0
ja 0x454950
lea eax, [ebp - 0x10a8]
push eax
lea eax, [ebp - 0x20]
push eax
call fcn.0049a0b9
movzx eax, byte [ebp - 0x11]
push eax
movzx eax, byte [ebp - 0x12]
push eax
movzx eax, byte [ebp - 0x13]
push eax
movzx eax, byte [ebp - 0x14]
push eax
movzx eax, byte [ebp - 0x15]
push eax
movzx eax, byte [ebp - 0x16]
push eax
movzx eax, byte [ebp - 0x17]
push eax
movzx eax, byte [ebp - 0x18]
push eax
movzx eax, byte [ebp - 0x19]
push eax
movzx eax, byte [ebp - 0x1a]
push eax
movzx eax, byte [ebp - 0x1b]
push eax
movzx eax, byte [ebp - 0x1c]
push eax
movzx eax, byte [ebp - 0x1d]
push eax
movzx eax, byte [ebp - 0x1e]
push eax
movzx eax, byte [ebp - 0x1f]
push eax
movzx eax, byte [ebp - 0x20]
push eax
lea eax, [ebp - 0x1050]
push str._02X_02X_02X_02X_02X_02X_02X_02X_02X_02X_02X_02X_02X_02X_02X_02X
push eax
call fcn.0040eb00
add esp, 0x50
push 0
lea eax, [ebp - 0x1050]
mov dword [ebx], 0x4e1680
push eax
mov ecx, ebx
mov dword [ebx + 0x28], 0x4e1670
call fcn.00406f90
mov byte [ebp - 4], 7
mov dword [ebp - 0x10b4], 1
mov byte [ebp - 4], 6
cmp esi, 0xffffffff
je 0x454a53
mov eax, dword [sym.imp.KERNEL32.dll_CloseHandle]
test eax, eax
je 0x454a53
push esi
call eax
mov dword [ebp - 0x10b0], 0xffffffff
mov dword [ebp - 4], 0
lea ecx, [ebp - 0x1050]
call fcn.00404be0
mov eax, ebx
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 0x10]
xor ecx, ebp
call fcn.0049c22a
mov esp, ebp
pop ebp
ret