Function at 0x4aadd0
Capabilities:
Read file on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x244
mov eax, dword [0x623ec0]
xor eax, ebp
mov dword [ebp - 4], eax
push ebx
push 0x15f90
mov ebx, ecx
push 0
push 0x9a18d0
mov dword [ebp - 0x234], ebx
call fcn.00468b40
push 0x80
lea eax, [ebp - 0x104]
push 0
push eax
call fcn.00468b40
lea eax, [ebp - 0x104]
push str.MeshBoneAni4.txt
push eax
call fcn.00445aa0
push 0x5ec6e4
lea eax, [ebp - 0x104]
mov dword [ebp - 0x228], 0
push eax
lea eax, [ebp - 0x228]
push eax
call fcn.0046c5d4
add esp, 0x2c
cmp dword [ebp - 0x228], 0
jne 0x4aae60
xor eax, eax
pop ebx
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.0046676f
mov esp, ebp
pop ebp
ret
push 0x5ec588
lea eax, [ebp - 0x22c]
mov dword [ebp - 0x22c], 0
push str.MeshValidIndex.bin
push eax
call fcn.0046c5d4
mov eax, dword [ebp - 0x22c]
add esp, 0xc
test eax, eax
je 0x4aaeaf
push eax
push 1
lea eax, [ebx + 0x577c8]
push 0x122a0
push eax
call fcn.0047004e
push dword [ebp - 0x22c]
call fcn.0046bf19
add esp, 0x14
push edi
push 0x100
lea eax, [ebp - 0x204]
mov dword [ebp - 0x224], 0
push 0
push eax
mov dword [ebp - 0x210], 0
mov dword [ebp - 0x214], 0
call fcn.00468b40
add esp, 0xc
mov dword [ebp - 0x244], 0
or edi, 0xffffffff
push esi
lea eax, [ebp - 0x204]
xor ebx, ebx
push eax
lea eax, [ebp - 0x214]
mov dword [ebp - 0x208], ebx
push eax
lea eax, [ebp - 0x210]
push eax
lea eax, [ebp - 0x224]
push eax
push str._d__d__d__s_r_n
push dword [ebp - 0x228]
call fcn.0044c0e0
add esp, 0x18
cmp eax, 0xffffffff
je 0x4ab97b
imul ecx, dword [ebp - 0x224], 0x384
mov eax, dword [ebp - 0x210]
mov dword [ecx + 0x9a195c], eax
mov eax, dword [ebp - 0x214]
mov dword [ecx + 0x9a1954], eax
lea eax, [ebp - 0x204]
push eax
lea eax, [ecx + 0x9a18d0]
push 0x5ec718
push eax
call fcn.00445aa0
imul eax, dword [ebp - 0x224], 0x384
add eax, 0x9a18d0
push eax
lea eax, [ebp - 0x84]
push str._s.bon
push eax
call fcn.00445aa0
push ebx
lea eax, [ebp - 0x218]
push eax
push ebx
push 0x40
lea eax, [ebp - 0x84]
push 0x8000
push eax
call fcn.00476d25
mov esi, dword [ebp - 0x218]
test eax, eax
cmovne esi, edi
push esi
call fcn.0047792c
mov edi, eax
push edi
call fcn.0047625d
imul ecx, dword [ebp - 0x224], 0x384
add esp, 0x38
mov dword [ecx + 0x9a1958], eax
test eax, eax
je 0x4ab99f
push edi
push eax
push esi
call fcn.00477e13
push esi
call fcn.00477179
mov esi, dword [ebp - 0x224]
mov eax, edi
imul ecx, esi, 0x384
add esp, 0x10
cdq
xor edi, edi
and edx, 7
add eax, edx
sar eax, 3
mov dword [ecx + 0x9a1950], eax
cmp dword [ecx + 0x9a195c], ebx
jbe 0x4ab0e8
nop dword [eax]
mov ecx, dword [ebp - 0x234]
imul eax, esi, 0xba
add eax, edi
mov eax, dword [ecx + eax*4 + 0x577c8]
inc eax
push eax
imul eax, esi, 0x384
add eax, 0x9a18d0
push eax
lea eax, [ebp - 0x84]
push str._s_04d.ani
push eax
call fcn.00445aa0
push 0
lea eax, [ebp - 0x21c]
push eax
push 0
push 0x40
lea eax, [ebp - 0x84]
push 0x8000
push eax
call fcn.00476d25
mov esi, dword [ebp - 0x21c]
add esp, 0x28
test eax, eax
mov eax, 0xffffffff
cmovne esi, eax
test esi, esi
js 0x4ab0c9
push 4
lea eax, [ebp - 0x208]
mov dword [ebp - 0x208], 0
push eax
push esi
call fcn.00477e13
imul eax, dword [ebp - 0x224], 0x384
push 4
add eax, 0x9a1c48
push eax
push esi
call fcn.00477e13
push esi
call fcn.00477179
add esp, 0x1c
add ebx, dword [ebp - 0x208]
mov esi, dword [ebp - 0x224]
inc edi
imul eax, esi, 0x384
cmp edi, dword [eax + 0x9a195c]
jb 0x4ab020
mov dword [ebp - 0x208], ebx
imul eax, esi, 0x384
mov ecx, ebx
xor ebx, ebx
shl ecx, 6
mov eax, dword [eax + 0x9a1c48]
mul ecx
seto bl
neg ebx
or ebx, eax
push ebx
call fcn.0047625d
mov ebx, dword [ebp - 0x224]
add esp, 4
imul esi, ebx, 0x384
mov dword [esi + 0x9a1c4c], eax
test ebx, ebx
je 0x4ab128
cmp ebx, 1
jne 0x4ab15d
mov edx, dword [ebp - 0x208]
xor ecx, ecx
mov eax, dword [esi + 0x9a1c48]
shl edx, 4
mul edx
seto cl
neg ecx
or ecx, eax
push ecx
call fcn.0047625d
mov ebx, dword [ebp - 0x224]
add esp, 4
imul ecx, ebx, 0x384
mov dword [ecx + 0x9a1c50], eax
imul eax, ebx, 0x384
xor edi, edi
xor esi, esi
mov dword [ebp - 0x238], edi
mov dword [ebp - 0x230], edi
mov dword [ebp - 0x208], esi
cmp dword [eax + 0x9a195c], esi
jbe 0x4ab960
nop word [eax + eax]
mov ecx, dword [ebp - 0x234]
imul eax, ebx, 0xba
add eax, esi
mov eax, dword [ecx + eax*4 + 0x577c8]
inc eax
push eax
imul eax, ebx, 0x384
add eax, 0x9a18d0
push eax
lea eax, [ebp - 0x84]
push str._s_04d.ani
push eax
call fcn.00445aa0
push 0
lea eax, [ebp - 0x220]
push eax
push 0
push 0x40
lea eax, [ebp - 0x84]
push 0x8000
push eax
call fcn.00476d25
mov ebx, dword [ebp - 0x220]
add esp, 0x28
test eax, eax
mov eax, 0xffffffff
cmovne ebx, eax
mov dword [ebp - 0x23c], ebx
test ebx, ebx
js 0x4ab935
push 4
lea eax, [ebp - 0x20c]
push eax
push ebx
call fcn.00477e13
imul eax, dword [ebp - 0x224], 0x384
push 4
add eax, 0x9a1c48
push eax
push ebx
call fcn.00477e13
imul eax, dword [ebp - 0x224], 0xe1
imul ecx, dword [ebp - 0x224], 0x384
mov edx, dword [ebp - 0x20c]
add eax, edi
mov edi, dword [ebp - 0x230]
shl edi, 6
mov dword [eax*4 + 0x9a1960], edx
mov eax, dword [ecx + 0x9a1c48]
imul eax, edx
shl eax, 6
push eax
mov eax, dword [ecx + 0x9a1c4c]
add eax, edi
push eax
push ebx
call fcn.00477e13
mov edx, dword [ebp - 0x224]
add esp, 0x24
test edx, edx
je 0x4ab28f
cmp edx, 1
je 0x4ab28f
mov ebx, dword [ebp - 0x20c]
jmp 0x4ab30c
mov ebx, dword [ebp - 0x20c]
imul ecx, edx, 0x384
mov dword [ebp - 0x240], 0
mov eax, dword [ecx + 0x9a1c48]
imul eax, ebx
test eax, eax
je 0x4ab30c
mov esi, dword [ebp - 0x230]
shl esi, 4
nop dword [eax + eax]
mov eax, dword [ecx + 0x9a1c4c]
add eax, edi
push eax
mov eax, dword [ecx + 0x9a1c50]
add eax, esi
push eax
call fcn.0040318a
mov edx, dword [ebp - 0x224]
add edi, 0x40
mov ebx, dword [ebp - 0x20c]
add esi, 0x10
inc dword [ebp - 0x240]
imul ecx, edx, 0x384
mov eax, dword [ecx + 0x9a1c48]
imul eax, ebx
cmp dword [ebp - 0x240], eax
jb 0x4ab2c0
mov esi, dword [ebp - 0x208]
mov edi, dword [ebp - 0x230]
push dword [ebp - 0x23c]
imul eax, edx, 0x384
mov eax, dword [eax + 0x9a1c48]
imul eax, ebx
add edi, eax
mov dword [ebp - 0x230], edi
call fcn.00477179
mov ebx, dword [ebp - 0x224]
add esp, 4
test ebx, ebx
je 0x4ab622
cmp ebx, 1
je 0x4ab622
cmp ebx, 2
jne 0x4ab426
mov eax, dword [ebp - 0x234]
mov edi, dword [ebp - 0x238]
mov esi, dword [eax + esi*4 + 0x57d98]
mov eax, 0x51eb851f
inc esi
imul esi
mov ecx, esi
sar edx, 5
mov eax, edx
shr eax, 0x1f
add eax, edx
lea edx, [eax - 1]
imul eax, eax, 0x64
sub ecx, eax
lea eax, [edx*8]
sub eax, edx
lea eax, [ecx + eax*8]
mov word [eax*2 + 0x99afce], di
cmp ecx, 4
jne 0x4ab3c8
lea eax, [edx + 0x78]
lea edx, [eax*8]
sub edx, eax
lea ecx, [eax*8]
shl edx, 4
sub ecx, eax
shl ecx, 4
mov ax, word [edx + 0x997b56]
mov word [ecx + 0x997b58], ax
cmp esi, 0x133
jne 0x4ab3ec
mov ecx, 0x99b120
mov ax, word [ecx - 0x70]
mov word [ecx], ax
add ecx, 2
cmp ecx, 0x99b190
jl 0x4ab3d5
jmp 0x4ab906
cmp esi, 0x6b
jne 0x4ab906
mov edx, 0x99b040
nop word [eax + eax]
mov ecx, 0x99afd0
mov ax, word [ecx]
add ecx, 2
mov word [edx], ax
add edx, 2
cmp ecx, 0x99b040
jl 0x4ab405
cmp edx, 0x99ca10
jl 0x4ab400
jmp 0x4ab906
cmp ebx, 5
jne 0x4ab496
mov eax, dword [ebp - 0x234]
mov esi, dword [eax + esi*4 + 0x58650]
mov eax, 0x51eb851f
inc esi
imul esi
mov ecx, esi
sar edx, 5
mov eax, edx
shr eax, 0x1f
add eax, edx
imul eax, eax, 0x2c
sub ecx, eax
mov eax, dword [ebp - 0x238]
mov word [ecx*2 + 0x99fe1e], ax
cmp esi, 0x6f
jne 0x4ab90c
mov edx, 0x99ff00
nop dword [eax]
mov ecx, 0x99fe90
mov ax, word [ecx]
add ecx, 2
mov word [edx], ax
add edx, 2
cmp ecx, 0x99ff00
jl 0x4ab475
cmp edx, 0x9a18d0
jl 0x4ab470
jmp 0x4ab90c
cmp ebx, 3
jne 0x4ab506
mov eax, dword [ebp - 0x234]
mov esi, dword [eax + esi*4 + 0x58080]
mov eax, 0x51eb851f
inc esi
imul esi
mov ecx, esi
sar edx, 5
mov eax, edx
shr eax, 0x1f
add eax, edx
imul eax, eax, 0x2c
sub ecx, eax
mov eax, dword [ebp - 0x238]
mov word [ecx*2 + 0x99c99e], ax
cmp esi, 0x6c
jne 0x4ab90c
mov edx, 0x99ca80
nop dword [eax]
mov ecx, 0x99ca10
mov ax, word [ecx]
add ecx, 2
mov word [edx], ax
add edx, 2
cmp ecx, 0x99ca80
jl 0x4ab4e5
cmp edx, 0x99e450
jl 0x4ab4e0
jmp 0x4ab90c
cmp ebx, 4
jne 0x4ab5b6
mov eax, dword [ebp - 0x234]
mov edi, dword [ebp - 0x238]
mov esi, dword [eax + esi*4 + 0x58368]
mov eax, 0x51eb851f
inc esi
imul esi
mov ecx, esi
sar edx, 5
mov eax, edx
shr eax, 0x1f
add eax, edx
lea edx, [eax - 1]
imul eax, eax, 0x64
sub ecx, eax
lea eax, [edx*8]
sub eax, edx
lea eax, [ecx + eax*8]
mov word [eax*2 + 0x99e44e], di
cmp ecx, ebx
jne 0x4ab582
lea eax, [edx + 0xf0]
lea edx, [eax*8]
sub edx, eax
lea ecx, [eax*8]
shl edx, 4
sub ecx, eax
shl ecx, 4
mov ax, word [edx + 0x997b56]
mov word [ecx + 0x997b58], ax
cmp esi, 0x6c
jne 0x4ab906
mov edx, 0x99e4c0
mov ecx, 0x99e450
mov ax, word [ecx]
add ecx, 2
mov word [edx], ax
add edx, 2
cmp ecx, 0x99e4c0
jl 0x4ab595
cmp edx, 0x99fe90
jl 0x4ab590
jmp 0x4ab906
cmp ebx, 0x1c
je 0x4ab5c4
cmp ebx, 7
jne 0x4ab90c
mov ecx, dword [ebp - 0x234]
imul eax, ebx, 0xba
add eax, esi
cmp dword [ecx + eax*4 + 0x577c8], 0x6b
jne 0x4ab90c
imul eax, ebx, 0x1a40
mov edi, 0x3b
lea ebx, [eax + 0x997b50]
lea ecx, [eax + 0x997bc0]
nop word [eax + eax]
mov edx, ebx
mov esi, 0x38
mov ax, word [edx]
lea edx, [edx + 2]
mov word [ecx], ax
add ecx, 2
sub esi, 1
jne 0x4ab607
sub edi, 1
jne 0x4ab600
jmp 0x4ab900
mov ecx, dword [ebp - 0x234]
imul eax, ebx, 0xba
add eax, esi
mov ecx, dword [ecx + eax*4 + 0x577c8]
mov eax, 0x51eb851f
inc ecx
imul ecx
mov edi, ecx
mov dword [ebp - 0x240], ecx
sar edx, 5
mov esi, edx
shr esi, 0x1f
add esi, edx
mov edx, dword [ebp - 0x224]
imul eax, esi, 0x64
sub edi, eax
mov eax, edx
shl eax, 4
sub eax, edx
lea ebx, [edi - 1]
lea ecx, [esi + eax*4]
lea eax, [ecx*8]
sub eax, ecx
mov ecx, dword [ebp - 0x238]
lea eax, [ebx + eax*8]
mov word [eax*2 + 0x997ae0], cx
test edx, edx
jne 0x4ab7b1
lea eax, [ebx - 4]
cmp eax, 4
ja 0x4ab6e7
cmp edi, 0xa
jge 0x4ab6e7
lea eax, [esi*8]
mov edx, 0xa
sub eax, esi
lea eax, [ebx + eax*8]
mov dword [ebp - 0x23c], eax
lea eax, [esi*8]
mov ebx, dword [ebp - 0x23c]
sub eax, esi
sub edx, edi
lea eax, [edi + eax*8]
lea ecx, [eax*2 + 0x997ae0]
nop word [eax + eax]
mov ax, word [ebx*2 + 0x997ae0]
lea ecx, [ecx + 2]
mov word [ecx - 2], ax
sub edx, 1
jne 0x4ab6d0
lea ebx, [edi - 1]
lea eax, [ebx - 0x19]
cmp eax, 3
ja 0x4ab734
cmp edi, 0x1e
jge 0x4ab734
lea eax, [esi*8]
mov edx, 0x1e
sub eax, esi
lea ebx, [ebx + eax*8]
lea eax, [esi*8]
sub eax, esi
sub edx, edi
lea eax, [edi + eax*8]
lea ecx, [eax*2 + 0x997ae0]
nop word [eax + eax]
mov ax, word [ebx*2 + 0x997ae0]
lea ecx, [ecx + 2]
mov word [ecx - 2], ax
sub edx, 1
jne 0x4ab720
cmp esi, 0xc
jle 0x4ab76f
movzx eax, word [0x998036]
lea ecx, [esi*8]
sub ecx, esi
shl ecx, 4
mov word [ecx + 0x997af6], ax
movzx eax, word [0x998038]
mov word [ecx + 0x997af8], ax
movzx eax, word [0x99803c]
mov word [ecx + 0x997afc], ax
cmp dword [ebp - 0x240], 0x8a
jne 0x4ab900
mov edx, 0x997bc0
mov ecx, 0x997b50
nop dword [eax]
mov ax, word [ecx]
add ecx, 2
mov word [edx], ax
add edx, 2
cmp ecx, 0x997bc0
jl 0x4ab790
cmp edx, 0x999590
jl 0x4ab784
jmp 0x4ab900
cmp edx, 1
jne 0x4ab900
lea eax, [ebx - 4]
cmp eax, 4
ja 0x4ab817
cmp edi, 0xa
jge 0x4ab817
lea eax, [esi*8]
mov edx, 0xa
sub eax, esi
lea eax, [ebx + eax*8]
mov dword [ebp - 0x23c], eax
lea eax, [esi*8]
mov ebx, dword [ebp - 0x23c]
sub eax, esi
sub edx, edi
lea eax, [edi + eax*8]
lea ecx, [eax*2 + 0x999520]
nop dword [eax]
mov ax, word [ebx*2 + 0x999520]
lea ecx, [ecx + 2]
mov word [ecx - 2], ax
sub edx, 1
jne 0x4ab800
lea ebx, [edi - 1]
lea eax, [ebx - 0x19]
cmp eax, 3
ja 0x4ab874
cmp edi, 0x1e
jge 0x4ab874
lea eax, [esi*8]
mov edx, 0x1e
sub eax, esi
lea eax, [ebx + eax*8]
mov dword [ebp - 0x23c], eax
lea eax, [esi*8]
sub eax, esi
sub edx, edi
lea eax, [edi + eax*8]
mov edi, dword [ebp - 0x23c]
lea ecx, [eax*2 + 0x999520]
nop word [eax + eax]
mov ax, word [edi*2 + 0x999520]
lea ecx, [ecx + 2]
mov word [ecx - 2], ax
sub edx, 1
jne 0x4ab860
cmp esi, 3
jne 0x4ab8c5
cmp ebx, 4
jne 0x4ab8c5
lea eax, [esi + 0x3b]
lea ecx, [eax*8]
sub ecx, eax
movzx eax, word [0x999600]
shl ecx, 4
mov word [ecx + 0x997b50], ax
movzx eax, word [0x999602]
mov word [ecx + 0x997b52], ax
movzx eax, word [0x999604]
mov word [ecx + 0x997b54], ax
movzx eax, word [0x999606]
mov word [ecx + 0x997b56], ax
cmp dword [ebp - 0x240], 0x89
jne 0x4ab900
mov edx, 0x999600
nop word [eax + eax]
mov eax, 0x999590
mov cx, word [eax]
add eax, 2
mov word [edx], cx
add edx, 2
cmp eax, 0x999600
jl 0x4ab8e5
cmp edx, 0x99afd0
jl 0x4ab8e0
mov ebx, dword [ebp - 0x224]
mov edi, dword [ebp - 0x230]
mov esi, dword [ebp - 0x238]
imul eax, ebx, 0x384
inc esi
mov dword [ebp - 0x238], esi
cmp esi, dword [eax + 0x9a195c]
jae 0x4ab956
mov esi, dword [ebp - 0x208]
mov edi, dword [ebp - 0x238]
jmp 0x4ab93b
mov ebx, dword [ebp - 0x224]
imul eax, ebx, 0x384
inc esi
mov dword [ebp - 0x208], esi
cmp esi, dword [eax + 0x9a195c]
jb 0x4ab190
jmp 0x4ab960
shl edi, 6
mov dword [ebx*4 + 0x9c23e0], edi
mov esi, dword [ebp - 0x244]
mov edi, 0xffffffff
inc esi
mov dword [ebp - 0x244], esi
cmp esi, 0x64
jl 0x4aaef2
push dword [ebp - 0x228]
call fcn.0046bf19
add esp, 4
mov eax, 1
pop esi
pop edi
pop ebx
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.0046676f
mov esp, ebp
pop ebp
ret
push esi
call fcn.00477179
mov ecx, dword [ebp - 4]
add esp, 4
xor ecx, ebp
xor eax, eax
pop esi
pop edi
pop ebx
call fcn.0046676f
mov esp, ebp
pop ebp
ret