Function at 0x451690
Capabilities:
Read file on windows

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x4c2275
mov eax, dword fs:[0]
push eax
mov eax, 0x10ac
call fcn.0049aa90
mov eax, dword [0x51c0b0]
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], 0x4dd804
mov dword [ebp - 0x1028], 0x4dcac4
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 0x451783
mov edi, dword [edi]
push 0
push 0x80
push 3
push 0
push 1
push SysReAllocStringLen
push edi
call dword [sym.imp.KERNEL32.dll_CreateFileW]
mov edi, eax
cmp edi, 0xffffffff
je 0x451879
lea eax, [ebp - 0x10a8]
mov esi, edi
push eax
mov dword [ebp - 0x10b0], esi
call fcn.00497579
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 0x451805
push dword [ebp - 0x10ac]
lea eax, [ebp - 0x1020]
push eax
lea eax, [ebp - 0x10a8]
push eax
call fcn.00497c74
add esp, 0xc
cmp dword [ebp - 0x10ac], 0
ja 0x4517c0
lea eax, [ebp - 0x10a8]
push eax
lea eax, [ebp - 0x20]
push eax
call fcn.004974fa
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.0040e850
add esp, 0x50
push 0
lea eax, [ebp - 0x1050]
mov dword [ebx], 0x4dd804
push eax
mov ecx, ebx
mov dword [ebx + 0x28], 0x4dcac4
call fcn.00407160
mov byte [ebp - 4], 7
mov dword [ebp - 0x10b4], 1
mov byte [ebp - 4], 6
cmp esi, 0xffffffff
je 0x4518c3
mov eax, dword [sym.imp.KERNEL32.dll_CloseHandle]
test eax, eax
je 0x4518c3
push esi
call eax
mov dword [ebp - 0x10b0], 0xffffffff
mov dword [ebp - 4], 0
lea ecx, [ebp - 0x1050]
call fcn.00404db0
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.004996ca
mov esp, ebp
pop ebp
ret