Function at 0x426621
Capabilities:
Read file on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x22c
push ebx
push esi
push edi
mov eax, dword [ebp + 8]
push eax
call fcn.00426266
add esp, 4
cmp dword [ebp + 0x10], 0
jbe 0x426989
mov eax, dword [ebp + 0x10]
cmp eax, 0x200
jb 0x426656
mov eax, 0x200
mov dword [ebp - 0x10], eax
mov eax, dword [ebp + 0xc]
push eax
mov eax, dword [ebp - 0x10]
push eax
push 1
lea eax, [ebp - 0x214]
push eax
call dword [sym.imp.MSVCRT20.dll_fread]
add esp, 0x10
mov dword [ebp - 0x224], eax
lea eax, [ebp - 0x214]
mov dword [ebp - 0x22c], eax
cmp dword [ebp - 0x224], 0
jne 0x426697
jmp 0x426989
xor eax, eax
sub eax, dword [ebp - 0x224]
neg eax
sub dword [ebp + 0x10], eax
mov eax, dword [ebp + 8]
mov eax, dword [eax + 0xc]
mov dword [0x42d100], eax
mov eax, dword [ebp - 0x224]
push eax
lea eax, [ebp - 0x214]
push eax
call fcn.00418da1
add esp, 8
mov eax, dword [0x42d100]
mov ecx, dword [ebp + 8]
mov dword [ecx + 0xc], eax
dec dword [ebp - 0x224]
js 0x426984
mov eax, dword [ebp - 0x22c]
mov al, byte [eax]
mov byte [ebp - 8], al
inc dword [ebp - 0x22c]
mov eax, dword [ebp + 8]
mov eax, dword [eax + 4]
mov ecx, dword [ebp + 8]
xor eax, dword [ecx]
mov dword [ebp - 0x14], eax
mov eax, dword [ebp + 8]
xor ecx, ecx
mov cl, byte [eax + 8]
xor eax, eax
mov al, byte [ebp - 8]
xor ecx, eax
mov eax, dword [ebp - 0x14]
and eax, 0xff
xor ecx, eax
mov eax, dword [ecx*4 + 0x42cd00]
mov ecx, dword [ebp - 0x14]
shr ecx, 8
xor eax, ecx
mov dword [ebp - 0x14], eax
mov eax, dword [ebp - 0x14]
mov ecx, dword [ebp + 8]
mov dword [ecx], eax
xor eax, eax
mov al, byte [ebp - 8]
shl eax, 8
mov ecx, dword [ebp - 0x14]
and ecx, 0xffff0000
add eax, ecx
inc eax
mov ecx, dword [ebp - 0x14]
and ecx, 0xffff
or eax, ecx
mov dword [ebp - 0x21c], eax
mov eax, dword [ebp + 8]
mov eax, dword [eax + 4]
mov word [ebp - 0x228], ax
mov eax, dword [ebp + 8]
mov eax, dword [eax + 4]
shr eax, 0x10
mov word [ebp - 0x218], ax
mov eax, dword [ebp - 0x21c]
mov word [ebp - 4], ax
mov eax, dword [ebp - 0x21c]
shr eax, 0x10
mov word [ebp - 0x220], ax
mov eax, dword [ebp - 4]
and eax, 0xffff
mov ecx, dword [ebp - 0x218]
and ecx, 0xffff
imul eax, ecx
mov word [ebp - 0x218], ax
mov eax, dword [ebp - 0x220]
and eax, 0xffff
mov ecx, dword [ebp - 0x228]
and ecx, 0xffff
imul eax, ecx
mov ecx, dword [ebp - 0x218]
and ecx, 0xffff
add eax, ecx
mov word [ebp - 0x220], ax
mov eax, dword [ebp - 4]
and eax, 0xffff
mov ecx, dword [ebp - 0x228]
and ecx, 0xffff
imul eax, ecx
mov ecx, dword [ebp - 0x220]
and ecx, 0xffff
shl ecx, 0x10
add eax, ecx
inc eax
mov dword [ebp - 0x14], eax
mov eax, dword [ebp - 0x14]
mov ecx, dword [ebp + 8]
mov dword [ecx + 4], eax
mov eax, dword [ebp + 8]
mov eax, dword [eax]
mov ecx, dword [ebp + 8]
add dword [ecx + 8], eax
mov eax, dword [ebp + 8]
xor ecx, ecx
mov cl, byte [eax]
mov eax, dword [ebp - 0x14]
and eax, 0xff
xor ecx, eax
mov eax, dword [ecx*4 + 0x42cd00]
mov ecx, dword [ebp - 0x14]
shr ecx, 8
xor eax, ecx
mov dword [ebp - 0x14], eax
mov eax, dword [ebp + 8]
mov eax, dword [eax + 8]
add dword [ebp - 0x14], eax
mov eax, dword [ebp - 0x14]
shr eax, 0x10
mov word [ebp - 0x218], ax
mov eax, dword [ebp - 0x14]
mov word [ebp - 0x228], ax
mov ebx, dword [ebp - 0x218]
and ebx, 0xffff
mov ecx, 0x10
xor eax, eax
mov al, byte [ebp - 8]
cdq
xor eax, edx
sub eax, edx
and eax, 0xf
xor eax, edx
sub eax, edx
sub ecx, eax
shr ebx, cl
mov esi, dword [ebp - 0x218]
and esi, 0xffff
xor eax, eax
mov al, byte [ebp - 8]
cdq
xor eax, edx
sub eax, edx
and eax, 0xf
xor eax, edx
sub eax, edx
mov cl, al
shl esi, cl
add ebx, esi
mov word [ebp - 0x218], bx
mov eax, dword [ebp - 0x218]
and eax, 0x8000
mov word [ebp - 0xc], ax
shl word [ebp - 0x218], 1
mov eax, dword [ebp - 0x228]
and eax, 0xffff
cdq
xor eax, edx
sub eax, edx
and eax, 1
xor eax, edx
sub eax, edx
mov ecx, dword [ebp - 0x218]
and ecx, 0xffff
add eax, ecx
mov word [ebp - 0x218], ax
mov eax, dword [ebp - 0x228]
and eax, 0xffff
shr eax, 1
mov ecx, dword [ebp - 0xc]
and ecx, 0xffff
add eax, ecx
mov word [ebp - 0x228], ax
mov ebx, dword [ebp - 0x228]
and ebx, 0xffff
mov ecx, 0x10
xor eax, eax
mov al, byte [ebp - 8]
cdq
xor eax, edx
sub eax, edx
and eax, 0xf
xor eax, edx
sub eax, edx
sub ecx, eax
shl ebx, cl
mov esi, dword [ebp - 0x228]
and esi, 0xffff
xor eax, eax
mov al, byte [ebp - 8]
cdq
xor eax, edx
sub eax, edx
and eax, 0xf
xor eax, edx
sub eax, edx
mov cl, al
shr esi, cl
add ebx, esi
mov word [ebp - 0x228], bx
mov eax, dword [ebp - 0x218]
and eax, 0xffff
shl eax, 0x10
mov ecx, dword [ebp - 0x228]
and ecx, 0xffff
add eax, ecx
mov ecx, dword [ebp + 8]
mov dword [ecx + 8], eax
jmp 0x4266d0
jmp 0x426639
mov eax, dword [ebp + 8]
push eax
call fcn.00426298
add esp, 4
pop edi
pop esi
pop ebx
leave
ret