Function at 0x428320
Capabilities:
Read file on windows

Disassembly:
mov eax, dword [esp + 4]
push ebx
push esi
mov esi, ecx
mov ecx, dword [0x67a8cc]
xor ebx, ebx
push edi
push ebx
push eax
push ecx
call dword [sym.imp.MSVCRT.dll_fseek]
mov eax, dword [esp + 0x20]
add esp, 0xc
cmp eax, 2
jne 0x42837b
mov edx, dword [0x67a8cc]
push edx
push 1
push 0x54
push esi
call dword [sym.imp.MSVCRT.dll_fread]
lea edi, [esi + 0x20]
add esp, 0x10
mov ecx, edi
call fcn.004c9d30
cdq
and edx, 3
mov ecx, edi
add eax, edx
sar eax, 2
push eax
call fcn.004c9eb0
jmp 0x4283fe
mov eax, dword [0x67a8cc]
mov edi, dword [sym.imp.MSVCRT.dll_fread]
push eax
push 3
push 4
push esi
call edi
mov dword [esi + 0xc], ebx
mov dword [esi + 0x10], ebx
mov ecx, dword [0x67a8cc]
lea edx, [esi + 0x14]
push ecx
push 1
push 8
push edx
call edi
mov eax, dword [0x67a8cc]
lea ecx, [esi + 0x1c]
push eax
push 1
push 4
push ecx
call edi
mov edx, dword [0x67a8cc]
lea eax, [esi + 0x20]
push edx
push 1
push 0x10
push eax
call edi
mov ecx, dword [0x67a8cc]
add esp, 0x40
lea edx, [esi + 0x30]
push ecx
push 1
push 4
push edx
call edi
mov eax, dword [0x67a8cc]
lea ecx, [esi + 0x3c]
push eax
push 1
push 8
push ecx
call edi
mov edx, dword [0x67a8cc]
lea eax, [esi + 0x44]
push edx
push 1
push 0x10
push eax
call edi
add esp, 0x30
mov cl, byte [esp + 0x14]
mov edx, dword [esp + 0x18]
mov byte [esi + 3], cl
mov eax, dword [0x67a7f0]
cmp eax, 0x18
push ebp
jge 0x42842d
mov al, byte [esi + 1]
xor ecx, ecx
mov cl, byte [edx + 4]
movsx edi, al
cmp ecx, dword [edi*4 + 0x54a748]
jbe 0x42842d
add al, 2
mov byte [esi + 1], al
movsx edi, byte [esi + 1]
mov byte [esi + 2], bl
mov al, byte [edx + 4]
mov ebx, dword [edi*4 + 0x54a748]
mov ecx, eax
and ecx, 0xff
cmp ecx, ebx
jbe 0x428451
mov cl, bl
sub al, cl
mov byte [esi + 2], al
mov eax, dword [esi + 0x1c]
mov ebx, dword [0x67a934]
mov ebp, eax
mov ecx, edi
and ebp, ebx
je 0x42846a
mov ecx, eax
shr ecx, 0x15
and ecx, 7
mov dl, byte [edx + 4]
mov ebx, edx
and ebx, 0xff
cmp ebx, dword [ecx*4 + 0x54a748]
jbe 0x42849e
test ebp, ebp
je 0x42848a
shr eax, 0x15
and eax, 7
mov edi, eax
mov bl, byte [edi*4 + 0x54a748]
mov al, byte [esi + 2]
sub dl, bl
shl dl, 4
or al, dl
mov byte [esi + 2], al
mov eax, dword [0x67a7f0]
pop ebp
cmp eax, 0x19
jge 0x4284b0
mov dword [esi + 0x1c], 0
mov eax, dword [esi + 0x1c]
mov dword [esi + 0x34], 0
test eax, 0x80000000
je 0x42855b
mov edi, dword [esi + 0x14]
mov ebx, dword [esi + 0x18]
test edi, edi
jle 0x428558
cmp dword [0x67a7f0], 0x1d
jl 0x42852f
shr eax, 0x1c
and eax, 7
dec eax
je 0x42852f
dec eax
je 0x42850d
dec eax
jne 0x428558
push 0x1c
call fcn.004784b0
add esp, 4
test eax, eax
je 0x428553
push edi
mov ecx, eax
call fcn.004cf860
mov dword [esi + 0x34], eax
mov dword [esi + 0x38], ebx
pop edi
pop esi
pop ebx
ret 0xc
push 0x24
call fcn.004784b0
add esp, 4
test eax, eax
je 0x428553
push edi
mov ecx, eax
call fcn.004cfd90
mov dword [esi + 0x34], eax
mov dword [esi + 0x38], ebx
pop edi
pop esi
pop ebx
ret 0xc
push 0x24
call fcn.004784b0
add esp, 4
test eax, eax
je 0x428553
push 0
push edi
mov ecx, eax
call fcn.004cfb10
mov dword [esi + 0x34], eax
mov dword [esi + 0x38], ebx
pop edi
pop esi
pop ebx
ret 0xc
xor eax, eax
mov dword [esi + 0x34], eax
mov dword [esi + 0x38], ebx
pop edi
pop esi
pop ebx
ret 0xc