Function at 0x482962
Capabilities:
Read file on windows

Disassembly:
push 0x1dc
mov eax, 0x4a268b
call fcn.0049cbc1
mov eax, dword [ebp + 8]
mov dword [ebp - 0x164], ecx
mov ecx, dword [ebp + 0xc]
xor ebx, ebx
mov dword [ebp - 0x160], ecx
mov dword [ebp - 0x158], ebx
push ebx
push 0x80
push 3
push ebx
push 1
push SysReAllocStringLen
push eax
mov dword [ebp - 4], ebx
call dword [sym.imp.KERNEL32.dll_CreateFileW]
cmp eax, 0xffffffff
jne 0x4829b1
call fcn.00418cc8
jmp 0x4829b9
mov dword [ebp - 0x158], eax
xor eax, eax
cmp eax, ebx
jge 0x4829d8
cmp dword [ebp - 0x158], ebx
je 0x4829d1
push dword [ebp - 0x158]
call dword [sym.imp.KERNEL32.dll_CloseHandle]
xor eax, eax
jmp 0x482bda
mov edi, 0x1000
push edi
call fcn.0049555c
mov dword [ebp - 0x154], eax
pop ecx
lea eax, [ebp - 0x150]
mov dword [ebp - 0x15c], ebx
call fcn.00482db5
push ebx
lea eax, [ebp - 0x15c]
push eax
push edi
push dword [ebp - 0x154]
push dword [ebp - 0x158]
call dword [sym.imp.KERNEL32.dll_ReadFile]
cmp eax, ebx
jne 0x482a21
call fcn.00418cc8
jmp 0x482a23
xor eax, eax
cmp eax, ebx
jl 0x482a44
mov eax, dword [ebp - 0x15c]
cmp eax, ebx
je 0x482a55
push dword [ebp - 0x154]
lea esi, [ebp - 0x150]
call fcn.00482ded
jmp 0x4829fb
push dword [ebp - 0x154]
call sub.MSVCR80.dll_void___cdecl_operator_delete___void__
pop ecx
jmp 0x4829bd
mov eax, dword [0x4dff94]
mov ecx, 0x4dff94
call dword [eax + 0xc]
add eax, 0x10
mov dword [ebp - 0x154], eax
lea ebx, [ebp - 0x20]
lea ecx, [ebp - 0x150]
mov byte [ebp - 4], 1
call fcn.00482e84
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
mov edi, 0x4be0a8
lea eax, [ebp - 0x154]
push edi
push eax
call fcn.00408085
add esp, 0x48
push dword [ebp - 0x164]
lea eax, [ebp - 0x154]
push eax
call fcn.0040917f
lea eax, [ebp - 0x154]
call fcn.0041ae07
lea eax, [ebp - 0xb8]
call fcn.00482db5
mov ebx, dword [ebp - 0x154]
push ebx
lea esi, [ebp - 0x1e8]
call fcn.00428048
push dword [eax]
mov eax, dword [ebx - 0xc]
lea esi, [ebp - 0xb8]
call fcn.00482ded
lea eax, [ebp - 0x1e4]
cmp dword [ebp - 0x1e8], eax
je 0x482b47
push dword [ebp - 0x1e8]
call dword [sym.imp.MSVCR80.dll_free]
pop ecx
lea ebx, [ebp - 0x20]
lea ecx, [ebp - 0xb8]
call fcn.00482e84
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
push edi
push dword [ebp - 0x160]
call fcn.00408085
mov eax, dword [ebp - 0x154]
add esp, 0x48
add eax, 0xfffffff0
call fcn.00401291
cmp dword [ebp - 0x158], 0
je 0x482bd7
push dword [ebp - 0x158]
call dword [sym.imp.KERNEL32.dll_CloseHandle]
xor eax, eax
inc eax
call fcn.0049cc44
ret