Function at 0x456bf0
Capabilities:
Read file on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x48
mov eax, dword [0x4c07e0]
xor eax, ebp
mov dword [ebp - 4], eax
push esi
mov esi, ecx
mov dword [ebp - 0x3c], 0
mov dword [ebp - 0x40], 0
mov eax, dword [esi + 0xb98]
cmp eax, 0xffffffff
je 0x456ed5
push 0
lea ecx, [ebp - 0x38]
push ecx
push 4
lea ecx, [ebp - 0x3c]
push ecx
push eax
call dword [sym.imp.KERNEL32.dll_ReadFile]
test eax, eax
je 0x456ed5
cmp dword [ebp - 0x38], 4
jne 0x456ed5
cmp dword [ebp - 0x3c], 0xfffffefe
jne 0x456ed5
push 0
lea eax, [ebp - 0x38]
push eax
push 4
lea eax, [ebp - 0x40]
push eax
push dword [esi + 0xb98]
call dword [sym.imp.KERNEL32.dll_ReadFile]
test eax, eax
je 0x456ed5
cmp dword [ebp - 0x38], 4
jne 0x456ed5
cmp dword [ebp - 0x40], 0x101
jne 0x456ed5
push 0
lea eax, [ebp - 0x38]
push eax
push 4
lea eax, [esi + 0xc2c]
push eax
push dword [esi + 0xb98]
call dword [sym.imp.KERNEL32.dll_ReadFile]
test eax, eax
je 0x456ed5
cmp dword [ebp - 0x38], 4
jne 0x456ed5
push 0
lea eax, [ebp - 0x38]
push eax
push 4
lea eax, [esi + 0xc30]
push eax
push dword [esi + 0xb98]
call dword [sym.imp.KERNEL32.dll_ReadFile]
test eax, eax
je 0x456ed5
cmp dword [ebp - 0x38], 4
jne 0x456ed5
mov eax, dword [esi + 0xbf4]
push 0
mov dword [ebp - 0x44], eax
lea eax, [ebp - 0x44]
push eax
push dword [esi + 0xbf0]
push dword [esi + 0xb94]
call dword [sym.imp.KERNEL32.dll_SetFilePointer]
cmp eax, 0xffffffff
jne 0x456d3c
call dword [sym.imp.KERNEL32.dll_GetLastError]
test eax, eax
je 0x456d3c
push 1
push str.error_seeking
mov ecx, esi
call fcn.004562f0
mov dword [esi + 0xc40], 1
xor al, al
pop esi
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.00464e2f
mov esp, ebp
pop ebp
ret
push 0
lea eax, [ebp - 0x38]
push eax
push 0x14
lea eax, [esi + 0xbfc]
push eax
push dword [esi + 0xb98]
call dword [sym.imp.KERNEL32.dll_ReadFile]
test eax, eax
je 0x456ed5
cmp dword [ebp - 0x38], 0x14
jne 0x456ed5
cmp dword [esi + 0xc10], 1
jae 0x456d7c
mov dword [esi + 0xc10], 1
cmp dword [esi + 0xc10], 0
je 0x456e73
mov eax, dword [esi + 0xbf8]
test eax, eax
je 0x456d9c
push eax
call fcn.0046b4f4
add esp, 4
mov eax, dword [esi + 0xc10]
add eax, 7
shr eax, 3
push 0
push eax
call fcn.004578a0
add esp, 8
mov dword [esi + 0xbf8], eax
test eax, eax
je 0x456e73
push 0
lea ecx, [ebp - 0x38]
push ecx
mov ecx, dword [esi + 0xc10]
add ecx, 7
shr ecx, 3
push ecx
push eax
push dword [esi + 0xb98]
call dword [sym.imp.KERNEL32.dll_ReadFile]
test eax, eax
je 0x456e73
mov ecx, dword [esi + 0xc10]
lea eax, [ecx + 7]
shr eax, 3
cmp dword [ebp - 0x38], eax
jne 0x456e73
push ebx
push edi
xor ebx, ebx
xor edi, edi
mov dword [esi + 0xc18], ebx
test ecx, ecx
je 0x456e71
nop word [eax + eax]
mov edx, dword [esi + 0xbf8]
mov eax, edi
shr eax, 3
mov ecx, edi
add eax, edx
and ecx, 7
mov dword [ebp - 0x48], eax
mov eax, 1
shl eax, cl
mov ecx, dword [ebp - 0x48]
test byte [ecx], al
je 0x456e45
inc dword [esi + 0xc34]
inc dword [esi + 0xc20]
inc dword [esi + 0xc18]
test edx, edx
je 0x456e4d
test byte [ecx], al
jne 0x456e68
push edi
lea ecx, [esi + 0xc54]
call fcn.004608c0
test ebx, ebx
jne 0x456e68
mov dword [esi + 0xc14], edi
mov ebx, 1
inc edi
cmp edi, dword [esi + 0xc10]
jb 0x456e10
pop edi
pop ebx
push 0x30
lea eax, [ebp - 0x34]
push 0
push eax
call fcn.00466b60
add esp, 0xc
lea eax, [ebp - 0x38]
push 0
push eax
push 0x30
lea eax, [ebp - 0x34]
push eax
push dword [esi + 0xb98]
call dword [sym.imp.KERNEL32.dll_ReadFile]
test eax, eax
je 0x456ed5
cmp dword [ebp - 0x38], 0x2f
jne 0x456ed5
mov ecx, dword [esi + 0x1448]
lea eax, [ebp - 0x34]
push eax
call fcn.00462b30
push esi
mov ecx, 0x4c6454
call fcn.00407280
cmp eax, 0xffffffff
je 0x456ed5
lea edx, [ebp - 0x34]
mov ecx, 0x4c6454
push edx
push 4
push eax
call fcn.00416e80
push 0
call fcn.00457a70
mov ecx, dword [ebp - 4]
add esp, 4
add eax, 0xa
mov dword [esi + 0xc50], 1
mov dword [esi + 0xb40], eax
mov al, 1
adc edx, 0
xor ecx, ebp
mov dword [esi + 0xb44], edx
pop esi
call fcn.00464e2f
mov esp, ebp
pop ebp
ret