Function at 0x456660
Capabilities:
Read file on windows

Disassembly:
mov eax, dword fs:[0]
push 0xffffffffffffffff
push 0x641051
push eax
mov eax, dword [esp + 0x10]
mov dword fs:[0], esp
sub esp, 0x40
push ebx
push esi
push edi
push 0
push 0x80
push 3
push 0
push 0
push 0x80000000
push eax
mov esi, ecx
call dword [sym.imp.kernel32.dll_CreateFileA]
mov edi, eax
or ebx, 0xffffffff
cmp edi, ebx
jne 0x4566b9
pop edi
pop esi
xor eax, eax
pop ebx
mov ecx, dword [esp + 0x40]
mov dword fs:[0], ecx
add esp, 0x4c
ret 8
push ebp
mov ebp, dword [sym.imp.kernel32.dll_ReadFile]
push 0
lea ecx, [esp + 0x64]
push ecx
push 0xe
lea edx, [esp + 0x24]
push edx
push edi
call ebp
test eax, eax
je 0x45690d
cmp word [esp + 0x18], 0x4d42
je 0x456720
push 0x66c
call fcn.00614bf2
add esp, 4
mov dword [esp + 0x64], eax
test eax, eax
mov dword [esp + 0x58], 0
je 0x456708
mov ecx, eax
call fcn.004acd40
jmp 0x45670a
xor eax, eax
push 0x43480000
push 0x43780000
push 0
push 0x739738
jmp 0x456902
push 0
lea eax, [esp + 0x64]
push eax
push 0x28
lea ecx, [esp + 0x34]
push ecx
push edi
call ebp
test eax, eax
je 0x45690d
cmp word [esp + 0x36], 0x18
je 0x45677f
push 0x66c
call fcn.00614bf2
add esp, 4
mov dword [esp + 0x64], eax
test eax, eax
mov dword [esp + 0x58], 1
je 0x456767
mov ecx, eax
call fcn.004acd40
jmp 0x456769
xor eax, eax
push 0x43480000
push 0x43780000
push 0
push 0x739938
jmp 0x456902
mov ecx, dword [esp + 0x30]
mov eax, dword [esp + 0x2c]
mov edx, ecx
imul edx, eax
cmp eax, 0x12
mov dword [esi + 8], eax
mov dword [esi + 0xc], ecx
mov dword [esi + 0x10], edx
jne 0x4568c9
cmp ecx, 0xc
jne 0x4568c9
push 0x2a0
call fcn.00614c96
add esp, 4
push 0
mov ebx, eax
mov eax, dword [esp + 0x26]
push 0
push eax
push edi
mov dword [esp + 0x24], ebx
call dword [sym.imp.kernel32.dll_SetFilePointer]
push 0
lea ecx, [esp + 0x64]
push ecx
push 0x2a0
push ebx
push edi
call ebp
test eax, eax
jne 0x4567ec
push ebx
call fcn.00616a81
add esp, 4
jmp 0x45690d
push edi
call dword [sym.imp.kernel32.dll_CloseHandle]
mov edx, dword [esi + 8]
imul edx, dword [esi + 0xc]
lea eax, [edx + edx + 1]
push eax
call fcn.00614c96
mov dword [esi + 0x14], eax
mov byte [eax], 0xff
mov ebp, dword [esi + 0x14]
mov ecx, dword [esi + 0xc]
add esp, 4
inc ebp
xor edi, edi
test ecx, ecx
mov dword [esi + 4], ebp
mov eax, ebx
je 0x456886
mov dword [esp + 0x10], ecx
mov edx, dword [esi + 8]
xor ecx, ecx
test edx, edx
jle 0x45686e
lea esp, [esp]
mov bl, byte [eax + 1]
movzx dx, byte [eax + 2]
and bl, 0xfc
movzx bx, bl
add eax, 3
and edx, 0xfff8
shl edx, 5
or edx, ebx
mov bl, byte [eax - 3]
shr bl, 3
movzx bx, bl
shl edx, 3
or edx, ebx
mov word [ebp + edi*2], dx
mov edx, dword [esi + 8]
inc edi
inc ecx
cmp ecx, edx
jl 0x456830
mov ebx, dword [esp + 0x14]
mov ecx, dword [esi + 8]
and ecx, 0x80000003
jns 0x45687e
dec ecx
or ecx, 0xfffffffc
inc ecx
add eax, ecx
dec dword [esp + 0x10]
jne 0x456823
mov edx, dword [esi + 0xc]
mov eax, dword [esi + 8]
push edx
shl eax, 1
push eax
push ebp
call fcn.004565c0
add esp, 0xc
test ebx, ebx
je 0x4568a6
push ebx
call fcn.00616a81
add esp, 4
mov ecx, dword [esi + 0x14]
mov edx, dword [esp + 0x64]
pop ebp
pop edi
pop esi
mov dword [edx], ecx
mov eax, 1
pop ebx
mov ecx, dword [esp + 0x40]
mov dword fs:[0], ecx
add esp, 0x4c
ret 8
push 0x66c
call fcn.00614bf2
add esp, 4
mov dword [esp + 0x64], eax
test eax, eax
mov dword [esp + 0x58], 2
je 0x4568ef
mov ecx, eax
call fcn.004acd40
jmp 0x4568f1
xor eax, eax
push 0x43480000
push 0x43780000
push 0
push 0x739b38
mov ecx, eax
mov dword [esp + 0x68], ebx
call fcn.004ad860
push edi
call dword [sym.imp.kernel32.dll_CloseHandle]
mov ecx, dword [esp + 0x50]
pop ebp
pop edi
pop esi
xor eax, eax
pop ebx
mov dword fs:[0], ecx
add esp, 0x4c
ret 8