Function at 0x41ab00
Capabilities:
Read file on windows

Disassembly:
sub esp, 0x64
push ebx
push ebp
push esi
push edi
xor edi, edi
mov esi, eax
mov eax, dword [0x486344]
push edi
or ebp, 0xffffffff
push esi
push eax
mov dword [esp + 0x20], edi
mov dword [esp + 0x24], ebp
mov dword [esp + 0x28], ebp
call fcn.00435f77
add esp, 0xc
call fcn.00401190
mov ecx, 0x4949
mov word [0x465c48], ax
cmp ax, cx
je 0x41ab4d
mov edx, 0x4d4d
cmp ax, dx
jne 0x41b14c
call fcn.00401190
push 0x168
push edi
push 0x486180
call fcn.00436440
add esp, 0xc
mov dword [0x4ac410], edi
mov bl, 0xff
lea ecx, [ecx]
mov eax, dword [0x486344]
push eax
push 4
lea ecx, [esp + 0x18]
push 1
push ecx
mov byte [esp + 0x20], bl
mov byte [esp + 0x21], bl
mov byte [esp + 0x22], bl
mov byte [esp + 0x23], bl
call fcn.00435763
movzx ecx, byte [esp + 0x22]
mov edx, 0x4949
add esp, 0x10
cmp word [0x465c48], dx
movzx edx, byte [esp + 0x11]
jne 0x41abca
movzx eax, byte [esp + 0x13]
shl eax, 8
or eax, ecx
movzx ecx, byte [esp + 0x10]
shl eax, 8
or eax, edx
shl eax, 8
or eax, ecx
jmp 0x41abe3
movzx eax, byte [esp + 0x10]
shl eax, 8
or eax, edx
movzx edx, byte [esp + 0x13]
shl eax, 8
or eax, ecx
shl eax, 8
or eax, edx
cmp eax, edi
je 0x41ac0a
add eax, esi
push edi
push eax
mov eax, dword [0x486344]
push eax
call fcn.00435f77
add esp, 0xc
push esi
call fcn.00418bf0
add esp, 4
test eax, eax
je 0x41ab70
mov eax, dword [0x465c44]
mov dword [0x4ac480], 0x10
cmp eax, edi
je 0x41ac61
mov ecx, dword [0x486344]
push edi
push eax
push ecx
call fcn.00435f77
add esp, 0xc
push 1
lea esi, [esp + 0x24]
call fcn.00402fe0
add esp, 4
test eax, eax
je 0x41ac61
mov edx, dword [esp + 0x20]
mov ax, word [esp + 0x28]
mov cx, word [esp + 0x24]
mov dword [0x4ac480], edx
mov word [0x465f5c], ax
mov word [0x4660b8], cx
xor esi, esi
cmp dword [0x4ac410], edi
mov edi, dword [0x4ac398]
jbe 0x41ad1a
mov eax, 0x486184
mov ecx, dword [eax + 0x18]
mov edx, dword [esp + 0x14]
cmp edx, ecx
jge 0x41ac8b
mov edx, ecx
mov dword [esp + 0x14], edx
cmp edx, 3
jle 0x41ac98
mov dword [esp + 0x14], 3
mov edx, dword [eax + 8]
cmp edx, 6
jne 0x41aca5
cmp ecx, 3
je 0x41ad04
movzx ebp, word [0x4ac484]
movzx ebx, word [0x465d20]
imul ebx, ebp
mov ebp, dword [eax]
imul ebp, dword [eax - 4]
cmp ebp, ebx
jle 0x41ad00
movzx edi, word [eax - 4]
mov word [0x4ac484], di
movzx edi, word [eax]
mov word [0x465d20], di
mov edi, dword [eax + 4]
mov dword [0x48633c], edi
mov edi, edx
mov edx, dword [eax + 0x10]
mov dword [0x465d28], edx
mov edx, dword [eax + 0x14]
mov ebp, esi
mov dword [0x4ac408], edx
mov dword [0x466128], ecx
mov dword [esp + 0x18], ebp
jmp 0x41ad04
mov ebp, dword [esp + 0x18]
inc esi
add eax, 0x24
cmp esi, dword [0x4ac410]
jb 0x41ac7a
mov dword [0x4ac398], edi
movzx ecx, word [0x4ac484]
lea eax, [ecx + 1]
cdq
sub eax, edx
sar eax, 1
imul ax, word [0x465f64]
mov word [0x465f64], ax
mov eax, dword [0x486198]
xor ebx, ebx
cmp eax, ebx
je 0x41ad47
mov dword [0x4ac408], eax
cmp ebp, ebx
jl 0x41af89
cmp dword [0x4862f0], ebx
jne 0x41af89
cmp edi, 0x8001
ja 0x41aef2
je 0x41aece
cmp edi, 0x63
ja 0x41ae50
je case.0x41ad8c.6
cmp edi, 7
ja case.0x41ad8c.2
movzx eax, byte [edi + 0x41b160]
jmp dword [eax*4 + 0x41b154]
mov eax, dword [0x48633c]
add eax, 0xfffffff8
mov esi, 0x407a30
cmp eax, 8
ja case.0x41adac.9
movzx ecx, byte [eax + 0x41b178]
jmp dword [ecx*4 + 0x41b168]
mov dword [0x4862f0], 0x40a170
jmp case.0x41adac.9
lea edx, [ebp + ebp*8]
cmp dword [edx*4 + 0x486190], 2
mov dword [0x4862f0], esi
jne 0x41addd
mov dword [0x4862fc], 6
push 6
push 0x45b26c
push 0x4ac3c0
call fcn.004344d5
add esp, 0xc
test eax, eax
jne case.0x41adac.9
mov dword [0x4862f0], 0x407da0
movzx edx, word [0x4ac484]
movzx ecx, word [0x465d20]
imul ecx, edx
add ecx, ecx
lea eax, [ebp + ebp*8]
mov eax, dword [eax*4 + 0x4861a0]
add ecx, ecx
add ecx, ecx
lea edx, [eax + eax*4]
cmp edx, ecx
jne 0x41af89
mov dword [0x4862f0], esi
mov dword [0x4862fc], 0x111
jmp 0x41af89
mov dword [0x4862f0], 0x4035c0
jmp 0x41af89
cmp edi, 0x106
je 0x41aee3
cmp edi, 0x7fff
jne case.0x41ad8c.2
movzx edx, word [0x465d20]
mov eax, dword [0x48633c]
imul edx, ecx
imul edx, eax
lea ecx, [ebp + ebp*8]
mov ecx, dword [ecx*4 + 0x4861a0]
add ecx, ecx
add ecx, ecx
add ecx, ecx
cmp ecx, edx
je 0x41aea6
add word [0x465d20], 8
mov dword [0x4862f0], 0x40b540
jmp 0x41af89
cmp eax, 8
jne 0x41aec4
mov dword [0x48633c], 0xc
mov dword [0x4862f0], 0x40b6a0
jmp 0x41af89
mov dword [0x4862fc], 0x4f
inc dword [0x4862fc]
mov dword [0x4862f0], 0x407a30
jmp 0x41af89
mov dword [0x4862f0], 0x40a540
jmp 0x41af89
cmp edi, 0x8799
ja 0x41af21
je 0x41af15
sub edi, 0x8005
je 0x41aed4
sub edi, 0x5e
je 0x41af89
mov dword [0x4ac3a0], ebx
jmp 0x41af89
mov dword [0x4862f0], 0x404440
jmp 0x41af89
cmp edi, 0xfde8
je 0x41af45
cmp edi, 0xffff
je 0x41af39
mov dword [0x4ac3a0], ebx
jmp 0x41af89
mov dword [0x4862f0], 0x404290
jmp 0x41af89
lea edx, [ebp + ebp*8]
mov eax, dword [edx*4 + 0x486190]
sub eax, 2
je 0x41af79
sub eax, 4
je 0x41af6d
sub eax, 0x801d
jne 0x41af89
mov dword [0x4862f0], 0x40abc0
jmp 0x41af89
mov dword [0x4862f0], 0x40ad50
jmp 0x41af83
mov dword [0x4862f0], 0x40af90
mov dword [0x466120], ebx
cmp dword [0x465f60], ebx
jne 0x41b00c
cmp dword [0x466128], 3
jne 0x41afba
lea eax, [ebp + ebp*8]
cmp dword [eax*4 + 0x4861a0], ebx
je 0x41afba
mov eax, dword [0x48633c]
cmp eax, 0xe
je 0x41afbf
cmp eax, 0x800
jne 0x41b006
jmp 0x41afbf
mov eax, dword [0x48633c]
cmp eax, 8
jne 0x41b00c
push 0x45b274
push 0x4ac3c0
call fcn.00434a10
add esp, 8
test eax, eax
jne 0x41b00c
push 0x45b27c
push 0x4ac3c0
call fcn.00434a10
add esp, 8
test eax, eax
jne 0x41b00c
push str.DEBUG_RAW
push 0x4ac440
call fcn.00434a10
add esp, 8
test eax, eax
jne 0x41b00c
mov dword [0x4ac3a0], ebx
cmp dword [0x4ac410], ebx
jbe 0x41b14c
mov ecx, 0x486180
lea ecx, [ecx]
cmp ebx, ebp
je 0x41b09d
mov edx, dword [esp + 0x14]
cmp dword [ecx + 0x1c], edx
jne 0x41b09d
movzx ebp, word [0x465f5c]
movzx eax, word [0x4660b8]
mov edx, dword [0x4ac480]
imul eax, ebp
inc edx
mov ebp, edx
imul ebp, edx
xor edx, edx
div ebp
mov esi, dword [ecx + 8]
lea edi, [esi + 1]
mov ebp, eax
mov eax, edi
imul eax, edi
mov edi, eax
mov eax, dword [ecx + 4]
imul eax, dword [ecx]
cdq
idiv edi
cmp eax, ebp
mov ebp, dword [esp + 0x18]
jbe 0x41b09d
mov ax, word [ecx]
mov dx, word [ecx + 4]
mov word [0x465f5c], ax
mov eax, dword [ecx + 0x14]
mov word [0x4660b8], dx
mov edx, dword [ecx + 0x20]
mov dword [0x465c44], eax
mov dword [0x465c5c], edx
mov dword [0x4ac480], esi
mov dword [esp + 0x1c], ebx
inc ebx
add ecx, 0x24
cmp ebx, dword [0x4ac410]
jb 0x41b020
mov eax, dword [esp + 0x1c]
test eax, eax
jl 0x41b14c
lea eax, [eax + eax*8]
add eax, eax
mov ecx, dword [eax + eax + 0x48619c]
add eax, eax
shl ecx, 5
or dword [0x4ac480], ecx
mov ecx, dword [eax + 0x48618c]
sub ecx, 0
je 0x41b142
sub ecx, 1
je 0x41b115
sub ecx, 0xfde7
jne 0x41b14c
cmp dword [eax + 0x486190], 6
jne 0x41b103
mov dword [0x4ac490], 0x40ad50
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x64
ret
mov dword [0x4ac490], 0x40af90
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x64
ret
cmp dword [eax + 0x486188], 8
jle 0x41b130
mov dword [0x4ac490], 0x40b0b0
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x64
ret
mov dword [0x486300], fcn.00404f70
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x64
ret
mov dword [0x486300], 0x405020
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x64
ret