Function at 0x4168d0
Capabilities:
Read file on windows

Disassembly:
sub esp, 0x14
push ebx
push ebp
push esi
mov esi, dword [esp + 0x24]
xor ebp, ebp
push edi
lea eax, [esp + 0x20]
push ebp
push eax
lea ecx, [esp + 0x30]
push 2
push ecx
push esi
call dword [sym.imp.KERNEL32.dll_ReadFile]
mov eax, dword [esp + 0x28]
and eax, 0xffff
cmp eax, 0x4949
mov dword [esp + 0x28], eax
jne 0x416912
mov dword [0x4308d8], ebp
mov edi, 1
jmp 0x416928
cmp eax, 0x4d4d
jne 0x416cc2
mov edi, 1
mov dword [0x4308d8], edi
push esi
call fcn.00416790
movsx edx, ax
push esi
mov dword [esp + 0x30], edx
call fcn.00416810
mov ebx, dword [sym.imp.KERNEL32.dll_SetFilePointer]
add esp, 8
mov dword [0x430b3c], eax
push ebp
push ebp
push eax
push esi
call ebx
push esi
call fcn.00416790
movsx eax, ax
add esp, 4
mov dword [0x428834], edi
mov dword [0x428838], edi
mov dword [0x42883c], edi
mov edi, dword [esp + 0x2c]
cmp eax, ebp
mov dword [esp + 0x1c], eax
mov dword [0x4308dc], ebp
mov dword [0x4308e0], ebp
mov word [0x430b14], bp
mov dword [esp + 0x10], ebp
jle 0x416beb
push 0x430b20
push esi
call fcn.00416860
movsx eax, word [0x430b20]
add eax, 0xffffff00
add esp, 8
cmp eax, 0x40
ja case.0x4169bf.271
xor ecx, ecx
mov cl, byte [eax + 0x416d0c]
jmp dword [ecx*4 + 0x416ccc]
movsx edx, word [0x430b28]
mov dword [edi + 4], edx
jmp case.0x4169bf.271
movsx eax, word [0x430b28]
mov dword [edi + 8], eax
jmp case.0x4169bf.271
mov eax, dword [0x430b24]
cmp eax, 1
jne 0x416a00
movsx ecx, word [0x430b28]
mov edx, dword [esp + 0x30]
mov dword [edx], ecx
jmp case.0x4169bf.271
mov edx, dword [0x430b28]
mov ecx, dword [0x430b3c]
movsx eax, ax
push ebp
push ebp
push edx
push esi
mov dword [esp + 0x38], eax
mov dword [0x430b30], ecx
call ebx
mov eax, dword [esp + 0x30]
mov dword [eax], ebp
mov eax, dword [esp + 0x28]
test eax, eax
jle 0x416a4c
push esi
call fcn.00416790
movsx ecx, ax
mov eax, dword [esp + 0x34]
add esp, 4
mov edx, dword [eax]
add edx, ecx
inc ebp
mov dword [eax], edx
mov eax, dword [esp + 0x28]
cmp ebp, eax
jl 0x416a2d
mov eax, dword [0x430b30]
push 0
push 0
push eax
push esi
mov dword [0x430b3c], eax
call ebx
xor ebp, ebp
jmp case.0x4169bf.271
mov eax, dword [0x430b28]
cmp eax, 1
je case.0x4169bf.271
cmp eax, 0x8003
jne 0x416cc2
jmp case.0x4169bf.271
movsx edx, word [0x430b28]
mov dword [0x428834], edx
jmp case.0x4169bf.271
movsx eax, word [0x430b28]
dec eax
mov dword [0x4308e0], eax
jmp case.0x4169bf.271
movsx ecx, word [0x430b24]
mov edx, dword [0x430b28]
mov dword [0x428838], ecx
mov dword [0x430b34], edx
jmp case.0x4169bf.271
movsx eax, word [0x430b28]
mov dword [0x42883c], eax
jmp case.0x4169bf.271
mov ecx, dword [0x430b28]
mov dword [0x430b18], ecx
jmp case.0x4169bf.271
mov eax, dword [0x430b28]
mov edx, dword [0x430b3c]
push ebp
push ebp
push eax
push esi
mov dword [0x430b30], edx
call ebx
push esi
call fcn.00416810
push esi
mov dword [esp + 0x1c], eax
call fcn.00416810
add esp, 8
cmp eax, ebp
mov dword [esp + 0x18], eax
je 0x416b7b
fild dword [esp + 0x14]
fidiv dword [esp + 0x18]
call fcn.004188fc
mov dword [esp + 0x2c], eax
jmp 0x416b7b
movsx ecx, word [0x430b28]
mov dword [0x4308dc], ecx
jmp case.0x4169bf.271
mov edx, dword [0x430b3c]
mov eax, dword [0x430b28]
push ebp
push ebp
mov dword [0x430b30], edx
push eax
jmp 0x416b69
mov ecx, dword [0x430b3c]
mov edx, dword [0x430b28]
push ebp
push ebp
mov dword [0x430b30], ecx
push edx
push esi
call ebx
push esi
call fcn.00416810
push esi
call fcn.00416810
add esp, 8
mov eax, dword [0x430b30]
push ebp
push ebp
push eax
push esi
mov dword [0x430b3c], eax
call ebx
jmp case.0x4169bf.271
cmp dword [0x430b28], 3
jne case.0x4169bf.271
fild dword [esp + 0x2c]
fmul qword [0x41f448]
call fcn.004188fc
movsx eax, ax
mov dword [esp + 0x2c], eax
jmp case.0x4169bf.271
movsx ecx, word [0x430b24]
mov eax, 0x55555556
imul ecx
mov ecx, edx
shr ecx, 0x1f
add edx, ecx
mov word [0x430b14], dx
mov edx, dword [0x430b28]
mov dword [0x430b2c], edx
mov eax, dword [esp + 0x10]
mov ecx, dword [esp + 0x1c]
inc eax
cmp eax, ecx
mov dword [esp + 0x10], eax
jl 0x416994
mov ecx, dword [esp + 0x30]
mov eax, dword [ecx]
cmp eax, 1
je 0x416c0e
cmp eax, 4
je 0x416c09
cmp eax, 8
je 0x416c09
cmp eax, 0x18
jne 0x416cc2
cmp eax, 1
jne 0x416c1f
mov eax, dword [edi + 4]
add eax, 7
cdq
and edx, 7
add eax, edx
sar eax, 3
jmp 0x416c3a
cmp eax, 4
jne 0x416c2f
mov eax, dword [edi + 4]
inc eax
cdq
sub eax, edx
sar eax, 1
jmp 0x416c3a
cmp eax, 8
mov eax, dword [edi + 4]
je 0x416c3a
lea eax, [eax + eax*2]
add eax, 3
mov dword [edi], 0x28
mov edx, dword [ecx]
and eax, 0xfffc
cmp edx, 4
mov word [edi + 0xc], 1
jne 0x416c5d
mov word [edi + 0xe], 4
jmp 0x416c64
mov cx, word [ecx]
mov word [edi + 0xe], cx
mov edx, dword [edi + 8]
mov dword [edi + 0x10], ebp
imul edx, eax
mov eax, dword [esp + 0x2c]
mov dword [edi + 0x14], edx
push ebp
push ebp
lea eax, [eax + eax*4]
lea eax, [eax + eax*4]
lea eax, [eax + eax*4]
lea ecx, [eax + eax*4]
mov eax, 0x81020409
shl ecx, 4
imul ecx
add edx, ecx
sar edx, 7
mov eax, edx
shr eax, 0x1f
add edx, eax
mov dword [edi + 0x18], edx
mov dword [edi + 0x1c], edx
movsx ecx, word [0x430b14]
mov dword [edi + 0x20], ecx
mov dword [edi + 0x24], ebp
mov edx, dword [0x430b34]
push edx
push esi
call ebx
pop edi
pop esi
pop ebp
mov eax, 1
pop ebx
add esp, 0x14
ret
pop edi
pop esi
pop ebp
xor eax, eax
pop ebx
add esp, 0x14
ret