Function at 0x430a10
Capabilities:
Read file on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x1c
mov eax, dword [0x4eec64]
xor eax, ebp
mov dword [ebp - 4], eax
push ebx
mov ebx, dword [ebp + 8]
movsx eax, word [ebx + 0x1c]
push esi
push edi
mov edi, ecx
cmp edi, eax
jge 0x430c7d
test edi, edi
jl 0x430c7d
mov edx, dword [ebx + 0x59c]
imul edi, edi, 0x168
add edi, dword [ebx + 0x18c]
push 0
mov ecx, dword [edi + 0x164]
push ecx
push edx
call fcn.0045dd31
mov eax, dword [edi + 4]
add esp, 0xc
cmp eax, dword [edi + 0xc]
je 0x430c9c
mov ecx, dword [edi + 8]
cmp ecx, dword [edi]
je 0x430c9c
movzx eax, word [edi + 0x10]
cmp ax, 4
jbe 0x430a94
mov edx, dword [ebp + 0xc]
mov dword [edx], 0
mov eax, 3
jmp 0x430c7f
xor ecx, ecx
mov dword [ebp - 0x14], 0
cmp cx, ax
jae 0x430c75
mov eax, dword [ebp - 0x14]
mov edx, dword [edi + 0x14]
movsx ecx, word [edx + eax*2]
call fcn.00430830
mov dword [ebp - 0x1c], eax
mov eax, dword [ebx + 0x59c]
push eax
push 1
push 2
lea esi, [edi + 0x154]
push esi
call fcn.0045e149
add esp, 0x10
cmp eax, 1
jne 0x430ca5
mov cx, word [esi]
rol cx, 8
movzx eax, cx
mov word [esi], cx
cmp ax, 1
jne 0x430c0e
mov esi, dword [edi + 0xc]
sub esi, dword [edi + 4]
mov dword [ebp - 0xc], 0
lea eax, [esi + esi]
call fcn.00472bc0
mov eax, esp
mov dword [ebp - 0x18], eax
test eax, eax
je 0x430c95
mov dword [ebp - 8], 0
test esi, esi
jbe 0x430b6b
mov esi, eax
mov eax, dword [ebx + 0x59c]
push eax
push 1
push 2
push esi
call fcn.0045e149
add esp, 0x10
cmp eax, 1
jne 0x430ca5
mov dx, word [esi]
rol dx, 8
movzx eax, dx
mov word [esi], dx
cmp ax, word [ebp - 0xc]
jbe 0x430b57
movzx eax, ax
mov dword [ebp - 0xc], eax
mov eax, dword [ebp - 8]
mov ecx, dword [edi + 0xc]
sub ecx, dword [edi + 4]
inc eax
add esi, 2
mov dword [ebp - 8], eax
cmp eax, ecx
jb 0x430b21
movzx eax, word [ebp - 0xc]
call fcn.00472bc0
mov esi, esp
xor eax, eax
cmp esi, eax
je 0x430c95
mov edx, dword [ebx + 0x59c]
push edx
mov dword [ebp - 0xc], eax
mov dword [ebp - 0x10], eax
call fcn.0045fa77
mov dword [ebp - 8], eax
mov eax, dword [ebx + 0x59c]
push eax
push 2
push 1
push esi
call fcn.0045e149
mov cl, byte [esi + 1]
mov eax, dword [ebp + 0xc]
mov edx, dword [ebp - 0x1c]
mov byte [edx + eax], cl
mov ecx, dword [edi + 0xc]
sub ecx, dword [edi + 4]
add esp, 0x14
xor eax, eax
cmp ecx, 2
jl 0x430be1
mov edx, dword [ebp - 0x18]
movzx edx, word [edx + eax*2]
add dword [ebp - 0xc], edx
mov edx, dword [ebp - 0x18]
movzx edx, word [edx + eax*2 + 2]
add dword [ebp - 0x10], edx
add eax, 2
lea edx, [ecx - 1]
cmp eax, edx
jb 0x430bc2
cmp eax, ecx
jae 0x430bef
mov ecx, dword [ebp - 0x18]
movzx edx, word [ecx + eax*2]
add dword [ebp - 8], edx
mov ecx, dword [ebp - 0x10]
mov eax, dword [ebp - 0xc]
mov edx, dword [ebx + 0x59c]
add eax, ecx
add eax, dword [ebp - 8]
push 0
push eax
push edx
call fcn.0045dd31
add esp, 0xc
jmp 0x430c62
test ax, ax
jne 0x430ca5
mov esi, dword [edi + 8]
sub esi, dword [edi]
mov eax, dword [edi + 0xc]
sub eax, dword [edi + 4]
imul esi, eax
mov eax, dword [ebx + 0x59c]
inc esi
push eax
and esi, 0xfffffffe
call fcn.0045fa77
mov edx, dword [ebp + 0xc]
mov ecx, dword [ebp - 0x1c]
add eax, esi
mov dword [ebp - 8], eax
mov eax, dword [ebx + 0x59c]
add ecx, edx
call fcn.00431630
mov eax, dword [ebp - 8]
mov ecx, dword [ebx + 0x59c]
push 0
push eax
push ecx
call fcn.0045dd31
add esp, 0x10
mov eax, dword [ebp - 0x14]
movzx edx, word [edi + 0x10]
inc eax
cmp eax, edx
mov dword [ebp - 0x14], eax
jl 0x430aa6
mov edx, dword [ebp + 0xc]
call fcn.0042fac0
xor eax, eax
lea esp, [ebp - 0x28]
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.0045c0ce
mov esp, ebp
pop ebp
ret 8
mov eax, 4
jmp 0x430c7f
mov eax, dword [ebp + 0xc]
mov dword [eax], 0
mov eax, 3
jmp 0x430c7f