Function at 0x4aea30
Capabilities:
Resolve function by parsing pe exports

Disassembly:
sub esp, 0x478
push ebx
push ebp
mov ebp, dword [esp + 0x494]
push esi
push edi
xor edi, edi
cmp ebp, edi
mov esi, ecx
jne 0x4aea77
mov eax, dword [esp + 0x4b4]
cmp eax, edi
je 0x4aea57
mov dword [eax + 0xc], edi
mov eax, dword [esp + 0x4a8]
cmp eax, edi
je 0x4afc12
mov dword [eax], edi
pop edi
pop esi
pop ebp
xor al, al
pop ebx
add esp, 0x478
ret 0x30
mov ebx, dword [esp + 0x48c]
cmp ebx, edi
jl 0x4afbf7
mov ecx, dword [esp + 0x490]
cmp ecx, edi
jl 0x4afbf7
mov eax, dword [esi + 4]
cmp ebx, eax
jg 0x4afbf7
cmp ecx, eax
jg 0x4afbf7
mov edx, dword [esp + 0x494]
cmp edx, edi
jl 0x4afbf7
mov ecx, dword [esp + 0x498]
cmp ecx, edi
jl 0x4afbf7
cmp edx, eax
jg 0x4afbf7
cmp ecx, eax
jg 0x4afbf7
mov eax, dword [esp + 0x4a4]
mov dword [esp + 0x40], edi
cmp eax, 0xffffffff
je 0x4aeb03
mov ecx, dword [esi + 0x10]
push eax
call fcn.00603f70
mov ecx, dword [esp + 0x498]
mov edx, dword [esp + 0x494]
mov edi, eax
mov dword [esp + 0x40], edi
test edi, edi
mov dword [esp + 0x70], edx
mov dword [esp + 0x68], ecx
mov dword [esp + 0x64], edx
mov dword [esp + 0x54], edx
mov dword [esp + 0x5c], ecx
mov dword [esp + 0x60], ecx
je 0x4aebc5
push edi
mov ecx, ebp
call fcn.00539280
fcomp dword [esp + 0x4a0]
fnstsw ax
test ah, 0x41
je 0x4aeb4d
mov eax, dword [esp + 0x4a8]
test eax, eax
je 0x4aec1f
jmp 0x4aec19
fld dword [edi + 0x38]
call fcn.0061318c
fld dword [edi + 0x3c]
mov dword [esp + 0x70], eax
call fcn.0061318c
mov ebp, dword [edi + 8]
mov dword [esp + 0x68], eax
fld dword [edi + 0x38]
fsub dword [ebp + 0x34]
call fcn.0061318c
fld dword [edi + 0x3c]
fsub dword [ebp + 0x38]
mov dword [esp + 0x54], eax
call fcn.0061318c
fld dword [edi + 0x38]
fadd dword [ebp + 0x34]
mov dword [esp + 0x60], eax
fsub dword [0x634968]
call fcn.0061318c
fld dword [ebp + 0x38]
fadd dword [edi + 0x3c]
mov dword [esp + 0x64], eax
fsub dword [0x634968]
call fcn.0061318c
mov ebp, dword [esp + 0x49c]
mov ecx, dword [esp + 0x498]
mov edx, dword [esp + 0x494]
mov dword [esp + 0x5c], eax
fld dword [esp + 0x4a0]
fcomp dword [0x6345a8]
fnstsw ax
test ah, 0x41
jne 0x4aec40
test edi, edi
jne 0x4aec40
mov eax, edx
mov edx, dword [esp + 0x490]
sub ecx, edx
sub eax, ebx
mov edx, ecx
imul edx, ecx
mov ecx, eax
imul ecx, eax
add edx, ecx
mov dword [esp + 0x38], edx
fild dword [esp + 0x38]
fsqrt
fcomp dword [esp + 0x4a0]
fnstsw ax
test ah, 1
je 0x4aec40
mov eax, dword [esp + 0x4a8]
test eax, eax
je 0x4aec1f
mov dword [eax], 0
mov eax, dword [esp + 0x4b4]
test eax, eax
je 0x4aec31
mov dword [eax + 0xc], 0
pop edi
pop esi
pop ebp
mov al, 1
pop ebx
add esp, 0x478
ret 0x30
mov edx, dword [ebp]
mov ecx, ebp
call dword [edx + 0x118]
fcomp dword [0x634594]
fnstsw ax
test ah, 0x40
je 0x4aec98
mov eax, dword [ebp + 8]
cmp word [eax + 0x10], 0x2a
je 0x4aec98
mov eax, dword [esp + 0x4a8]
test eax, eax
je 0x4aec73
mov dword [eax], 0
mov eax, dword [esp + 0x4b4]
test eax, eax
je 0x4afc12
pop edi
pop esi
mov dword [eax + 0xc], 0
pop ebp
xor al, al
pop ebx
add esp, 0x478
ret 0x30
mov ecx, dword [ebp + 8]
mov eax, dword [esi + 0x10]
movsx edx, word [ecx + 0x6e]
mov ecx, dword [eax + 0x60]
mov edx, dword [ecx + edx*4]
mov ecx, dword [0x68ca14]
push edx
call fcn.004a2780
mov edx, dword [esi + 0x10]
xor eax, 0xff
mov dword [esp + 0x78], eax
mov eax, dword [ebp + 8]
movsx ecx, word [eax + 0x6e]
mov eax, dword [edx + 0x60]
mov ecx, dword [eax + ecx*4]
push ecx
mov ecx, dword [0x68ca14]
call fcn.004a2780
xor eax, 0xff
mov dword [esi + 0xce638], 0
mov edx, dword [ebp + 4]
or ah, 0x40
test edi, edi
mov dword [esp + 0x74], eax
mov dword [esp + 0x30], 1
mov dword [esp + 0x8c], edx
je 0x4aed17
mov eax, dword [edi + 4]
mov dword [esp + 0x30], 2
mov dword [esp + 0x90], eax
cmp dword [ebp + 0x78], 0xffffffff
jne 0x4aedb6
mov eax, dword [ebp + 0x60]
mov dword [esp + 0x34], 0
test eax, eax
jle 0x4aedb6
mov ecx, dword [esp + 0x30]
lea edx, [esp + ecx*4 + 0x8c]
mov dword [esp + 0x24], edx
cmp dword [esp + 0x30], 0xff
jge 0x4aedb6
mov eax, dword [ebp + 0x5c]
mov ecx, dword [esp + 0x34]
mov edx, dword [eax + ecx*4]
mov ecx, dword [esi + 0x10]
push edx
call fcn.00603f70
mov edi, eax
test edi, edi
je 0x4aeda6
mov eax, dword [edi + 4]
mov ecx, dword [ebp + 4]
cmp eax, ecx
je 0x4aeda6
mov edx, dword [edi]
mov ecx, edi
call dword [edx + 0x14c]
cmp al, 1
je 0x4aed8d
mov eax, dword [edi]
mov ecx, edi
call dword [eax + 0x28c]
cmp eax, 1
jne 0x4aeda6
mov eax, dword [esp + 0x24]
mov ecx, dword [edi + 4]
mov edx, dword [esp + 0x30]
mov dword [eax], ecx
inc edx
add eax, 4
mov dword [esp + 0x30], edx
mov dword [esp + 0x24], eax
mov eax, dword [esp + 0x34]
mov ecx, dword [ebp + 0x60]
inc eax
cmp eax, ecx
mov dword [esp + 0x34], eax
jl 0x4aed43
mov eax, dword [ebp + 0x78]
cmp eax, 0xffffffff
je 0x4aee21
mov ecx, dword [esi + 0x10]
push eax
call fcn.00604cb0
test eax, eax
je 0x4aee21
mov ecx, dword [eax + 0xd0]
mov edx, dword [eax + 0xd8]
test ecx, ecx
mov dword [esp + 0x24], 0
jle 0x4aee21
mov ecx, dword [esp + 0x30]
lea edi, [esp + ecx*4 + 0x8c]
cmp dword [esp + 0x30], 0xff
jge 0x4aee21
mov ecx, dword [edx]
cmp ecx, dword [ebp + 4]
je 0x4aee0d
mov dword [edi], ecx
mov ecx, dword [esp + 0x30]
inc ecx
add edi, 4
mov dword [esp + 0x30], ecx
mov ecx, dword [esp + 0x24]
add edx, 4
inc ecx
cmp ecx, dword [eax + 0xd0]
mov dword [esp + 0x24], ecx
jl 0x4aedee
mov al, byte [esi + 0xce634]
cmp al, 0xf0
jb 0x4aee42
mov ecx, 0x3f80
or eax, 0xffffffff
lea edi, [esi + 0x14]
mov byte [esi + 0xce634], 0
rep stosd dword es:[edi], eax
stosb byte es:[edi], al
jmp 0x4aee4a
add al, 8
mov byte [esi + 0xce634], al
mov edi, dword [esp + 0x498]
mov edx, dword [esp + 0x494]
mov eax, dword [esp + 0x490]
push edi
push edx
push eax
push ebx
mov dword [esi + 0xce62c], 1
mov dword [esi + 0xce630], 0
call fcn.004afca0
mov edx, dword [esp + 0x4a0]
mov ecx, ebx
shl ecx, 8
sub ecx, ebx
mov dword [esp + 0x58], eax
add ecx, edx
mov byte [esp + 0x55], dl
add esp, 0x10
mov byte [esp + 0x44], bl
mov dword [esi + ecx*4 + 0xfe18], eax
mov ecx, edi
mov dword [esi + 0x4f628], eax
mov eax, dword [esp + 0x494]
sub ecx, edx
mov byte [esi + 0x4f625], dl
mov edx, ecx
sub eax, ebx
imul edx, ecx
mov ecx, eax
mov byte [esi + 0x4f624], bl
imul ecx, eax
add edx, ecx
mov dword [esi + 0x4f620], 0x88ca6c00
mov dword [esp + 0x38], edx
mov dword [esp + 0x4c], 0
fild dword [esp + 0x38]
fsqrt
call fcn.0061318c
mov edi, eax
mov eax, 0x51eb851f
mov ecx, edi
imul ecx, dword [0x66a574]
imul ecx
mov ecx, dword [ebp + 0xc]
sar edx, 5
mov eax, edx
shr eax, 0x1f
add edx, eax
mov dword [esp + 0x6c], edx
call fcn.005d5880
cmp eax, 1
jne 0x4aef3f
lea ecx, [edi + edi*2]
lea edi, [edi + ecx*8]
lea eax, [edi + edi*4]
lea ecx, [eax + eax*4]
mov eax, 0x51eb851f
shl ecx, 2
imul ecx
sar edx, 5
mov eax, edx
shr eax, 0x1f
add edx, eax
mov dword [esp + 0x6c], edx
mov eax, dword [esi + 0xce62c]
test eax, eax
jle 0x4afab0
cmp dword [0x66a574], 0xffffffff
je 0x4aef66
mov ecx, dword [esp + 0x4c]
mov eax, dword [esp + 0x6c]
cmp ecx, eax
jg 0x4afab0
cmp dword [esp + 0x4c], 0x4e20
jg 0x4afab0
mov ecx, dword [esp + 0x498]
xor edx, edx
mov dl, byte [esi + 0x4f624]
xor eax, eax
mov al, byte [esi + 0x4f625]
mov ebp, edx
mov edx, dword [esp + 0x494]
push ecx
mov ebx, ebp
push edx
mov edi, eax
push eax
push ebx
mov dword [esp + 0x4c], ebp
mov dword [esp + 0x44], edi
mov dword [esp + 0x30], eax
call fcn.004afca0
mov dword [esp + 0x3c], eax
mov eax, dword [esp + 0x4a8]
mov ecx, edi
add esp, 0x10
sub eax, ecx
mov ecx, dword [esp + 0x494]
sub ecx, ebx
mov edx, ecx
imul edx, ecx
mov ecx, eax
imul ecx, eax
add edx, ecx
mov eax, dword [esp + 0x40]
mov dword [esp + 0x24], edx
fild dword [esp + 0x24]
test eax, eax
fsqrt
fstp dword [esp + 0x28]
jne 0x4af026
mov al, byte [esp + 0x4b8]
fld dword [esp + 0x28]
test al, al
je 0x4af013
fsub dword [esp + 0x4a0]
fcomp dword [0x6364d4]
fnstsw ax
test ah, 1
jne 0x4afa31
jmp 0x4af064
fcomp dword [0x6345a8]
fnstsw ax
test ah, 1
jne 0x4afa31
jmp 0x4af064
mov edx, dword [esp + 0x40]
mov ecx, dword [esp + 0x49c]
push edx
call fcn.00539280
fsub dword [esp + 0x4a0]
fcomp dword [0x6364d4]
fnstsw ax
test ah, 1
jne 0x4afa31
fld dword [esp + 0x28]
fcomp dword [0x6345a8]
fnstsw ax
test ah, 1
jne 0x4afa31
cmp ebp, dword [esp + 0x54]
jl 0x4af080
cmp ebp, dword [esp + 0x64]
jg 0x4af080
cmp edi, dword [esp + 0x60]
jl 0x4af080
cmp edi, dword [esp + 0x5c]
jle 0x4afa31
mov eax, dword [esp + 0x2c]
mov ecx, dword [esp + 0x48]
cmp eax, ecx
jge 0x4af0a4
mov cl, byte [esi + 0x4f624]
mov dl, byte [esi + 0x4f625]
mov byte [esp + 0x44], cl
mov byte [esp + 0x45], dl
mov dword [esp + 0x48], eax
mov edi, dword [esi + 0xce630]
mov eax, dword [esi + 0xce62c]
inc edi
mov dword [esi + 0xce630], edi
mov cl, byte [esi + eax*8 + 0x4f61c]
mov byte [esi + 0x4f624], cl
mov dl, byte [esi + eax*8 + 0x4f61d]
mov byte [esi + 0x4f625], dl
mov ecx, dword [esi + eax*8 + 0x4f620]
lea edi, [eax - 1]
mov dword [esi + 0x4f628], ecx
mov dword [esi + 0xce62c], edi
mov dl, byte [esi + 0x4f624]
mov al, byte [esi + 0x4f625]
mov byte [esp + 0x13], dl
mov edx, dword [esi + 0x4f628]
mov byte [esp + 0x12], al
mov eax, edi
mov dword [esp + 0x24], edx
cdq
sub eax, edx
mov ecx, 1
sar eax, 1
cmp eax, ecx
jle 0x4af19d
mov ebp, edi
lea edi, [ecx + ecx]
cmp edi, ebp
jge 0x4af135
mov eax, dword [esi + edi*8 + 0x4f620]
mov edx, dword [esi + edi*8 + 0x4f628]
cmp eax, edx
jle 0x4af135
inc edi
mov edx, dword [esp + 0x24]
mov eax, dword [esi + edi*8 + 0x4f620]
cmp edx, eax
jl 0x4af173
mov eax, dword [esi + edi*8 + 0x4f61c]
mov dword [esi + ecx*8 + 0x4f61c], eax
mov edx, dword [esi + edi*8 + 0x4f620]
mov dword [esi + ecx*8 + 0x4f620], edx
mov ebp, dword [esi + 0xce62c]
mov eax, ebp
mov ecx, edi
cdq
sub eax, edx
sar eax, 1
cmp edi, eax
jl 0x4af11b
cmp ecx, 1
je 0x4af199
mov al, byte [esp + 0x13]
mov dl, byte [esp + 0x12]
mov byte [esi + ecx*8 + 0x4f61c], al
mov eax, dword [esp + 0x24]
mov byte [esi + ecx*8 + 0x4f61d], dl
mov dword [esi + ecx*8 + 0x4f620], eax
mov ebp, dword [esp + 0x3c]
mov edx, dword [esp + 0x34]
mov ecx, ebp
shl ecx, 8
sub ecx, ebp
xor eax, eax
add ecx, edx
mov dword [esp + 0x28], eax
mov dword [esp + 0x24], 1
mov dword [esp + 0x58], ecx
cmp eax, 7
ja case.default.0x4af1c1
jmp dword [eax*4 + 0x4afc24]
dec ebx
mov eax, dword [esp + 0x20]
dec eax
mov dword [esp + 0x20], eax
mov eax, dword [esp + 0x58]
mov dl, byte [esi + 0xce634]
mov al, byte [eax + esi + 0x14]
mov cl, al
and cl, 0xf8
cmp cl, dl
jne 0x4af1fb
and eax, 7
jmp 0x4af200
inc ebx
jmp case.default.0x4af1c1
mov eax, dword [esp + 0x20]
inc eax
jmp 0x4af1ce
dec ebx
jmp case.default.0x4af1c1
mov eax, 8
mov edx, dword [esp + 0x24]
mov ecx, dword [eax*4 + str.8p]
test edx, ecx
jne 0x4af972
test ebx, ebx
jl 0x4af972
mov eax, dword [esp + 0x20]
test eax, eax
jl 0x4af972
cmp ebx, dword [esi + 4]
jge 0x4af972
cmp eax, dword [esi + 8]
jge 0x4af972
cmp ebx, dword [esp + 0x48c]
jne 0x4af24f
cmp eax, dword [esp + 0x490]
je 0x4af972
mov eax, dword [esp + 0x20]
mov ecx, dword [esp + 0x34]
mov edx, dword [esp + 0x3c]
push eax
push ebx
push ecx
push edx
call fcn.004afca0
mov ecx, dword [esp + 0x4a8]
mov edx, dword [esp + 0x4a4]
mov ebp, eax
mov eax, dword [esp + 0x68]
push ecx
mov ecx, dword [esp + 0x50]
mov edi, dword [esi + eax*4 + 0xfe18]
mov eax, dword [esp + 0x48]
push edx
push eax
push ecx
call fcn.004afca0
mov edx, dword [esp + 0x4b8]
mov ecx, dword [esp + 0x40]
mov dword [esp + 0x4c], eax
mov eax, dword [esp + 0x4b4]
push edx
push eax
push ecx
push ebx
call fcn.004afca0
mov ecx, dword [esp + 0x5c]
mov edx, ebx
shl edx, 8
add ebp, eax
mov eax, dword [esp + 0x50]
sub edx, ebx
sub edi, ecx
add eax, edx
mov dl, byte [esi + 0xce634]
mov dword [esp + 0x5c], eax
add esp, 0x30
mov al, byte [eax + esi + 0x14]
add edi, ebp
mov cl, al
mov dword [esp + 0x50], edi
and cl, 0xf8
cmp cl, dl
jne 0x4af349
and al, 7
cmp al, 8
mov byte [esp + 0x13], al
jae 0x4af301
mov eax, dword [esp + 0x2c]
mov edx, edi
cmp dword [esi + eax*4 + 0xfe18], edx
jle 0x4af972
mov ecx, dword [0x68ca14]
mov edx, dword [esp + 0x20]
mov eax, dword [esp + 0x78]
mov ecx, dword [ecx + 0x1c]
mov edi, dword [ecx + edx*4]
mov ebp, dword [edi + ebx*4]
test eax, ebp
mov dword [esp + 0x14], ebp
jne 0x4af389
mov ebp, dword [esp + 0x28]
cmp ebp, 6
ja case.0x4af32d.1
jmp dword [ebp*4 + 0x4afc44]
test dword [edi + ebx*4 + 4], eax
jne 0x4af385
mov ecx, dword [ecx + edx*4 + 4]
test dword [ecx + ebx*4], eax
je case.0x4af32d.1
jmp 0x4af385
mov byte [esp + 0x13], 0xff
jmp 0x4af301
mov ecx, dword [ecx + edx*4 + 4]
test dword [ecx + ebx*4], eax
jne 0x4af385
test dword [edi + ebx*4 - 4], eax
je case.0x4af32d.1
jmp 0x4af385
test dword [edi + ebx*4 - 4], eax
jne 0x4af385
mov ecx, dword [ecx + edx*4 - 4]
test dword [ecx + ebx*4], eax
je case.0x4af32d.1
jmp 0x4af385
mov ecx, dword [ecx + edx*4 - 4]
test dword [ecx + ebx*4], eax
jne 0x4af385
test dword [edi + ebx*4 + 4], eax
je case.0x4af32d.1
mov ebp, dword [esp + 0x14]
mov edi, dword [esi + 0xce83c]
or eax, 0xffffffff
cmp edi, eax
jne 0x4af3ae
cmp dword [esi + 0xce840], eax
jne 0x4af3ae
cmp dword [esi + 0xce844], eax
je 0x4af972
mov edx, dword [esp + 0x20]
mov eax, dword [esi + 0xc]
mov ecx, dword [eax + 0xa214]
mov eax, ebx
shl eax, 5
mov ecx, dword [ecx + edx*4]
mov al, byte [ecx + eax + 5]
mov byte [esp + 0x7c], al
mov eax, dword [esp + 0x7c]
and eax, 0xff
cmp eax, edi
je 0x4af3f2
cmp eax, dword [esi + 0xce840]
je 0x4af3f2
cmp eax, dword [esi + 0xce844]
jne 0x4af972
mov edx, dword [esp + 0x20]
jmp 0x4af3f2
mov ebp, dword [esp + 0x14]
mov eax, dword [esp + 0x70]
mov byte [esp + 0x1b], 0
cmp ebx, eax
jne 0x4af405
cmp edx, dword [esp + 0x68]
je 0x4af41d
cmp ebx, dword [esp + 0x54]
jl 0x4af422
cmp ebx, dword [esp + 0x64]
jg 0x4af422
cmp edx, dword [esp + 0x60]
jl 0x4af422
cmp edx, dword [esp + 0x5c]
jg 0x4af422
mov byte [esp + 0x1b], 1
mov ecx, dword [esp + 0x74]
mov dword [esp + 0x14], 1
test ecx, ebp
je 0x4af556
mov edx, ebp
and edx, 0x3f00
cmp edx, 0x500
jne 0x4af525
mov eax, dword [esp + 0x49c]
shr ebp, 0x10
mov ecx, dword [eax + 0xc]
push ebp
mov edx, dword [ecx]
call dword [edx + 0x1c]
test eax, eax
je 0x4af5d3
mov ecx, dword [esi + 0xc]
mov edi, dword [esp + 0x20]
mov edx, ebx
mov eax, dword [ecx + 0xa214]
shl edx, 5
mov eax, dword [eax + edi*4]
test byte [eax + edx + 0xb], 0x60
je 0x4af5d3
lea edx, [esp + 0x80]
lea eax, [esp + 0x84]
push edx
mov edx, edi
push eax
push edx
push ebx
call fcn.004835a0
test al, al
je 0x4af5d3
mov eax, dword [esi + 0xc]
mov edx, dword [esp + 0x84]
shl edx, 5
mov ecx, dword [eax + 0xa214]
mov eax, dword [esp + 0x80]
xor edi, edi
mov eax, dword [ecx + eax*4]
add eax, edx
xor edx, edx
mov dl, byte [eax + 0xd]
test edx, edx
jle 0x4af5d3
mov eax, dword [eax + 0x14]
mov ecx, dword [eax]
mov ebp, dword [ecx + 8]
cmp word [ebp + 0x16], 0x27
je 0x4af4f9
inc edi
add eax, 4
cmp edi, edx
jl 0x4af4d7
mov eax, 0xfe
mov dword [esp + 0x14], eax
jmp 0x4af72f
mov eax, dword [esp + 0x49c]
mov edx, dword [ecx]
mov eax, dword [eax + 0xc]
mov eax, dword [eax + 0x9c]
push eax
call dword [edx + 0x2e0]
cmp eax, 1
je 0x4af54b
mov eax, 0xfe
mov dword [esp + 0x14], eax
jmp 0x4af72f
mov al, byte [esp + 0x1b]
test al, al
je 0x4af5d3
cmp al, 1
jne 0x4af556
mov eax, dword [esp + 0x40]
test eax, eax
jne 0x4af556
mov eax, 0xfe
mov dword [esp + 0x14], eax
jmp 0x4af72f
mov eax, dword [0x68ca14]
mov ecx, dword [esp + 0x74]
jmp 0x4af55b
mov eax, dword [0x68ca14]
mov edx, dword [esp + 0x28]
cmp edx, 6
ja case.0x4af564.1
jmp dword [edx*4 + 0x4afc60]
mov eax, dword [eax + 0x1c]
mov edx, dword [esp + 0x20]
mov edi, dword [eax + edx*4]
test dword [edi + ebx*4 + 4], ecx
jne 0x4af5d3
mov edx, dword [eax + edx*4 + 4]
test dword [edx + ebx*4], ecx
jmp 0x4af5d1
mov eax, dword [eax + 0x1c]
mov edx, dword [esp + 0x20]
mov edi, dword [eax + edx*4 + 4]
test dword [edi + ebx*4], ecx
jne 0x4af5d3
mov eax, dword [eax + edx*4]
mov edx, dword [eax + ebx*4 - 4]
jmp 0x4af5cf
mov edx, dword [eax + 0x1c]
mov eax, dword [esp + 0x20]
lea eax, [edx + eax*4]
mov edx, dword [eax]
test dword [edx + ebx*4 - 4], ecx
jne 0x4af5d3
mov eax, dword [eax - 4]
mov edx, dword [eax + ebx*4]
jmp 0x4af5cf
mov edx, dword [eax + 0x1c]
mov eax, dword [esp + 0x20]
lea eax, [edx + eax*4]
mov edx, dword [eax - 4]
test dword [edx + ebx*4], ecx
jne 0x4af5d3
mov eax, dword [eax]
mov edx, dword [eax + ebx*4 + 4]
test ecx, edx
je case.0x4af564.1
mov eax, 0xfe
mov dword [esp + 0x14], eax
jmp 0x4af72f
mov edi, dword [esp + 0x30]
mov edx, dword [esp + 0x20]
lea ecx, [esp + 0x8c]
push edi
push ecx
push edx
push ebx
mov ecx, esi
call fcn.004afcf0
cmp al, 1
jne 0x4af60d
mov eax, 0xfe
mov dword [esp + 0x14], eax
jmp 0x4af72f
mov eax, dword [esp + 0x28]
cmp eax, 6
ja case.0x4af61a.1
jmp dword [eax*4 + 0x4afc7c]
mov edx, dword [esp + 0x20]
lea ecx, [esp + 0x8c]
push edi
push ecx
lea eax, [ebx + 1]
push edx
push eax
mov ecx, esi
call fcn.004afcf0
cmp al, 1
je 0x4af71f
mov edx, dword [esp + 0x20]
lea ecx, [esp + 0x8c]
push edi
inc edx
push ecx
push edx
push ebx
mov ecx, esi
call fcn.004afcf0
cmp al, 1
jne case.0x4af61a.1
mov eax, 0xfe
mov dword [esp + 0x14], eax
jmp 0x4af72f
mov ecx, dword [esp + 0x20]
lea eax, [esp + 0x8c]
push edi
inc ecx
push eax
push ecx
push ebx
mov ecx, esi
call fcn.004afcf0
cmp al, 1
je 0x4af71f
mov eax, dword [esp + 0x20]
lea edx, [esp + 0x8c]
push edi
push edx
lea ecx, [ebx - 1]
push eax
push ecx
mov ecx, esi
call fcn.004afcf0
cmp al, 1
jne case.0x4af61a.1
mov eax, 0xfe
mov dword [esp + 0x14], eax
jmp 0x4af72f
mov eax, dword [esp + 0x20]
lea edx, [esp + 0x8c]
push edi
push edx
lea ecx, [ebx - 1]
push eax
push ecx
mov ecx, esi
call fcn.004afcf0
cmp al, 1
je 0x4af71f
mov eax, dword [esp + 0x20]
lea edx, [esp + 0x8c]
push edi
dec eax
push edx
push eax
jmp 0x4af651
mov edx, dword [esp + 0x20]
lea ecx, [esp + 0x8c]
push edi
dec edx
push ecx
push edx
push ebx
mov ecx, esi
call fcn.004afcf0
cmp al, 1
je 0x4af71f
mov ecx, dword [esp + 0x20]
lea eax, [esp + 0x8c]
push edi
push eax
lea edx, [ebx + 1]
push ecx
push edx
mov ecx, esi
call fcn.004afcf0
cmp al, 1
jne case.0x4af61a.1
mov eax, 0xfe
mov dword [esp + 0x14], eax
jmp 0x4af72f
mov eax, 0xfe
mov ecx, dword [esi + 0xce83c]
cmp ecx, 0xffffffff
mov ecx, dword [esp + 0x14]
je 0x4af768
cmp ecx, eax
jne 0x4af81f
mov eax, dword [esi + 0xc]
mov edx, ebx
shl edx, 5
mov ecx, dword [eax + 0xa214]
mov eax, dword [esp + 0x20]
mov ecx, dword [ecx + eax*4]
mov al, byte [ecx + edx + 0xd]
test al, al
jne 0x4af770
jmp 0x4af81f
cmp ecx, eax
jne 0x4af81f
cmp dword [esp + 0x4b0], 0xffffffff
je 0x4af972
lea ebp, [ebx - 1]
test ebp, ebp
jge 0x4af787
xor ebp, ebp
lea eax, [ebx + 1]
xor cl, cl
cmp ebp, eax
mov byte [esp + 0x12], cl
jg 0x4af81f
cmp ebp, dword [esi + 4]
jge 0x4af816
test cl, cl
jne 0x4af816
mov eax, dword [esp + 0x20]
lea edi, [eax - 1]
test edi, edi
jge 0x4af7ae
xor edi, edi
inc eax
cmp edi, eax
mov dword [esp + 0x88], eax
jg 0x4af80e
cmp edi, dword [esi + 8]
jge 0x4af80e
test cl, cl
jne 0x4af80e
mov eax, dword [esp + 0x4b0]
mov ecx, dword [esp + 0x4ac]
lea edx, [esp + 0x14]
push 0
push edx
push edi
push ebp
push eax
push ecx
mov ecx, dword [esi + 0x10]
mov dword [esp + 0x2c], 0
call fcn.00603e20
mov ecx, dword [esp + 0x14]
test ecx, ecx
jle 0x4af7fe
cmp eax, 0xffffffff
jne 0x4af7fe
mov byte [esp + 0x12], 1
mov eax, dword [esp + 0x88]
mov cl, byte [esp + 0x12]
inc edi
cmp edi, eax
jle 0x4af7ba
inc ebp
lea eax, [ebx + 1]
cmp ebp, eax
jle 0x4af798
cmp cl, 1
je 0x4af972
mov edx, dword [esp + 0x58]
mov al, byte [edx + esi + 0x14]
mov dl, byte [esi + 0xce634]
mov cl, al
and cl, 0xf8
cmp cl, dl
jne 0x4af83e
and al, 7
mov byte [esp + 0x38], al
jmp 0x4af843
mov byte [esp + 0x38], 0xff
mov edx, dword [esp + 0x38]
mov eax, dword [esp + 0x28]
mov ecx, dword [esp + 0x50]
and edx, 0xff
cmp eax, edx
je 0x4af85a
inc ecx
cmp byte [esp + 0x1b], 1
jne 0x4af863
xor ecx, ecx
mov al, byte [esp + 0x13]
mov edi, dword [esp + 0x2c]
cmp al, 8
jae 0x4af87c
cmp ecx, dword [esi + edi*4 + 0xfe18]
jge 0x4af972
mov al, byte [esp + 0x28]
mov dword [esi + edi*4 + 0xfe18], ecx
mov dl, byte [esi + 0xce634]
and al, 7
or al, dl
mov byte [edi + esi + 0x14], al
mov edx, dword [esi + 0xce62c]
inc edx
mov eax, edx
mov dword [esi + 0xce62c], edx
mov byte [esi + eax*8 + 0x4f61c], bl
mov edx, dword [esi + 0xce62c]
mov al, byte [esp + 0x20]
mov byte [esi + edx*8 + 0x4f61d], al
mov edx, dword [esi + 0xce62c]
mov dword [esi + edx*8 + 0x4f620], ecx
mov ecx, dword [esi + 0xce62c]
cmp ecx, 1
mov ebp, ecx
jl 0x4af96b
mov eax, ecx
cdq
sub eax, edx
mov dl, byte [esi + ecx*8 + 0x4f61d]
mov edi, eax
mov al, byte [esi + ecx*8 + 0x4f61c]
sar edi, 1
mov byte [esp + 0x13], al
mov eax, dword [esi + ecx*8 + 0x4f620]
mov byte [esp + 0x12], dl
mov edx, dword [esi + edi*8 + 0x4f620]
cmp eax, edx
mov dword [esp + 0x2c], eax
jg 0x4af96b
mov eax, dword [esi + edi*8 + 0x4f61c]
mov dword [esi + ebp*8 + 0x4f61c], eax
mov edx, dword [esi + edi*8 + 0x4f620]
mov eax, ebp
mov dword [esi + ebp*8 + 0x4f620], edx
cdq
sub eax, edx
sar eax, 1
mov ebp, eax
mov eax, edi
cdq
sub eax, edx
sar eax, 1
mov edi, eax
mov eax, dword [esp + 0x2c]
cmp eax, dword [esi + edi*8 + 0x4f620]
jle 0x4af90f
cmp ebp, ecx
je 0x4af96b
mov cl, byte [esp + 0x13]
mov dl, byte [esp + 0x12]
mov byte [esi + ebp*8 + 0x4f61c], cl
mov byte [esi + ebp*8 + 0x4f61d], dl
mov dword [esi + ebp*8 + 0x4f620], eax
cmp byte [esp + 0x1b], 1
je 0x4af9aa
mov eax, dword [esp + 0x28]
mov edx, dword [esp + 0x24]
inc eax
shl edx, 1
cmp eax, 8
mov dword [esp + 0x28], eax
mov dword [esp + 0x24], edx
jl 0x4af1bc
mov ecx, dword [esp + 0x4c]
mov eax, dword [esi + 0xce62c]
inc ecx
test eax, eax
mov dword [esp + 0x4c], ecx
jle 0x4afab0
jmp 0x4aef4d
mov edi, dword [esp + 0x4b4]
test edi, edi
je 0x4af9fd
mov ecx, dword [esp + 0x4b0]
mov edx, dword [esp + 0x4ac]
mov eax, dword [esp + 0x490]
push ecx
mov ecx, dword [esp + 0x490]
push edx
mov edx, dword [esp + 0x4a4]
push edi
push eax
push ecx
push edx
mov ecx, esi
call fcn.004afd80
test al, al
jne 0x4af9fd
mov dword [edi + 0xc], 0
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x478
ret 0x30
mov eax, dword [esp + 0x4a8]
test eax, eax
je 0x4afa22
mov ecx, dword [esp + 0x3c]
mov edx, ecx
shl edx, 8
sub edx, ecx
mov ecx, dword [esp + 0x34]
add edx, ecx
fild dword [esi + edx*4 + 0xfe18]
fstp dword [eax]
pop edi
pop esi
pop ebp
mov al, 1
pop ebx
add esp, 0x478
ret 0x30
mov ebx, dword [esp + 0x4b4]
test ebx, ebx
je 0x4afa84
mov eax, dword [esp + 0x4b0]
mov ecx, dword [esp + 0x4ac]
mov edx, dword [esp + 0x490]
push eax
mov eax, dword [esp + 0x490]
push ecx
mov ecx, dword [esp + 0x4a4]
push ebx
push edx
push eax
push ecx
mov ecx, esi
call fcn.004afd80
test al, al
jne 0x4afa84
pop edi
pop esi
mov dword [ebx + 0xc], 0
pop ebp
pop ebx
add esp, 0x478
ret 0x30
mov eax, dword [esp + 0x4a8]
test eax, eax
je 0x4afaa1
mov edx, ebp
shl edx, 8
sub edx, ebp
add edx, edi
fild dword [esi + edx*4 + 0xfe18]
fstp dword [eax]
pop edi
pop esi
pop ebp
mov al, 1
pop ebx
add esp, 0x478
ret 0x30
mov ecx, dword [esi + 0xce62c]
inc ecx
mov dword [esi + 0xce62c], ecx
mov eax, ecx
mov cl, byte [esp + 0x44]
mov byte [esi + eax*8 + 0x4f61c], cl
mov edx, dword [esi + 0xce62c]
mov al, byte [esp + 0x45]
mov byte [esi + edx*8 + 0x4f61d], al
mov ecx, dword [esi + 0xce62c]
mov dword [esi + ecx*8 + 0x4f620], 0
mov ebp, dword [esi + 0xce62c]
cmp ebp, 1
mov edi, ebp
jl 0x4afb84
mov eax, ebp
mov ebx, dword [esi + ebp*8 + 0x4f620]
cdq
sub eax, edx
mov dl, byte [esi + ebp*8 + 0x4f61c]
mov ecx, eax
mov al, byte [esi + ebp*8 + 0x4f61d]
sar ecx, 1
mov byte [esp + 0x12], al
mov byte [esp + 0x13], dl
cmp ebx, dword [esi + ecx*8 + 0x4f620]
jg 0x4afb84
mov edx, dword [esi + ecx*8 + 0x4f61c]
mov dword [esi + edi*8 + 0x4f61c], edx
mov eax, dword [esi + ecx*8 + 0x4f620]
mov dword [esi + edi*8 + 0x4f620], eax
mov eax, edi
cdq
sub eax, edx
sar eax, 1
mov edi, eax
mov eax, ecx
cdq
sub eax, edx
sar eax, 1
mov ecx, eax
cmp ebx, dword [esi + ecx*8 + 0x4f620]
jle 0x4afb2c
cmp edi, ebp
je 0x4afb84
mov cl, byte [esp + 0x13]
mov dl, byte [esp + 0x12]
mov byte [esi + edi*8 + 0x4f61c], cl
mov byte [esi + edi*8 + 0x4f61d], dl
mov dword [esi + edi*8 + 0x4f620], ebx
mov edi, dword [esp + 0x4b4]
test edi, edi
je 0x4afbd7
mov eax, dword [esp + 0x4b0]
mov ecx, dword [esp + 0x4ac]
mov edx, dword [esp + 0x490]
push eax
mov eax, dword [esp + 0x490]
push ecx
mov ecx, dword [esp + 0x4a4]
push edi
push edx
push eax
push ecx
mov ecx, esi
call fcn.004afd80
test al, al
jne 0x4afbd7
mov dword [edi + 0xc], 0
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x478
ret 0x30
mov eax, dword [esp + 0x4a8]
test eax, eax
je 0x4afc12
fild dword [esp + 0x48]
pop edi
pop esi
pop ebp
pop ebx
fstp dword [eax]
xor al, al
add esp, 0x478
ret 0x30
mov eax, dword [esp + 0x4a8]
cmp eax, edi
je 0x4afc04
mov dword [eax], edi
mov eax, dword [esp + 0x4b4]
cmp eax, edi
je 0x4afc12
mov dword [eax + 0xc], edi
pop edi
pop esi
pop ebp
xor al, al
pop ebx
add esp, 0x478
ret 0x30