Function at 0x4a8750
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 0x4a8797
mov eax, dword [esp + 0x4b4]
cmp eax, edi
je 0x4a8777
mov dword [eax + 0xc], edi
mov eax, dword [esp + 0x4a8]
cmp eax, edi
je 0x4a9947
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 0x4a992c
mov ecx, dword [esp + 0x490]
cmp ecx, edi
jl 0x4a992c
mov eax, dword [esi + 4]
cmp ebx, eax
jg 0x4a992c
cmp ecx, eax
jg 0x4a992c
mov edx, dword [esp + 0x494]
cmp edx, edi
jl 0x4a992c
mov ecx, dword [esp + 0x498]
cmp ecx, edi
jl 0x4a992c
cmp edx, eax
jg 0x4a992c
cmp ecx, eax
jg 0x4a992c
mov eax, dword [esp + 0x4a4]
mov dword [esp + 0x40], edi
cmp eax, 0xffffffff
je 0x4a8823
mov ecx, dword [esi + 0x10]
push eax
call fcn.005ebae0
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 0x4a88e5
push edi
mov ecx, ebp
call fcn.0052bc30
fcomp dword [esp + 0x4a0]
fnstsw ax
test ah, 0x41
je 0x4a886d
mov eax, dword [esp + 0x4a8]
test eax, eax
je 0x4a893f
jmp 0x4a8939
fld dword [edi + 0x38]
call fcn.005faa4c
fld dword [edi + 0x3c]
mov dword [esp + 0x70], eax
call fcn.005faa4c
mov ebp, dword [edi + 8]
mov dword [esp + 0x68], eax
fld dword [edi + 0x38]
fsub dword [ebp + 0x34]
call fcn.005faa4c
fld dword [edi + 0x3c]
fsub dword [ebp + 0x38]
mov dword [esp + 0x54], eax
call fcn.005faa4c
fld dword [edi + 0x38]
fadd dword [ebp + 0x34]
mov dword [esp + 0x60], eax
fsub dword [0x61b950]
call fcn.005faa4c
fld dword [ebp + 0x38]
fadd dword [edi + 0x3c]
mov dword [esp + 0x64], eax
fsub dword [0x61b950]
call fcn.005faa4c
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 [0x61b598]
fnstsw ax
test ah, 0x41
jne 0x4a8960
test edi, edi
jne 0x4a8960
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 0x4a8960
mov eax, dword [esp + 0x4a8]
test eax, eax
je 0x4a893f
mov dword [eax], 0
mov eax, dword [esp + 0x4b4]
test eax, eax
je 0x4a8951
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 [0x61b584]
fnstsw ax
test ah, 0x40
je 0x4a89b8
mov eax, dword [ebp + 8]
cmp word [eax + 0x10], 0x2a
je 0x4a89b8
mov eax, dword [esp + 0x4a8]
test eax, eax
je 0x4a8993
mov dword [eax], 0
mov eax, dword [esp + 0x4b4]
test eax, eax
je 0x4a9947
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 [0x66c984]
push edx
call fcn.0049c440
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 [0x66c984]
call fcn.0049c440
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 0x4a8a37
mov eax, dword [edi + 4]
mov dword [esp + 0x30], 2
mov dword [esp + 0x90], eax
cmp dword [ebp + 0x78], 0xffffffff
jne 0x4a8ad6
mov eax, dword [ebp + 0x60]
mov dword [esp + 0x34], 0
test eax, eax
jle 0x4a8ad6
mov ecx, dword [esp + 0x30]
lea edx, [esp + ecx*4 + 0x8c]
mov dword [esp + 0x24], edx
cmp dword [esp + 0x30], 0xff
jge 0x4a8ad6
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.005ebae0
mov edi, eax
test edi, edi
je 0x4a8ac6
mov eax, dword [edi + 4]
mov ecx, dword [ebp + 4]
cmp eax, ecx
je 0x4a8ac6
mov edx, dword [edi]
mov ecx, edi
call dword [edx + 0x14c]
cmp al, 1
je 0x4a8aad
mov eax, dword [edi]
mov ecx, edi
call dword [eax + 0x28c]
cmp eax, 1
jne 0x4a8ac6
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 0x4a8a63
mov eax, dword [ebp + 0x78]
cmp eax, 0xffffffff
je 0x4a8b41
mov ecx, dword [esi + 0x10]
push eax
call fcn.005ec820
test eax, eax
je 0x4a8b41
mov ecx, dword [eax + 0xd0]
mov edx, dword [eax + 0xd8]
test ecx, ecx
mov dword [esp + 0x24], 0
jle 0x4a8b41
mov ecx, dword [esp + 0x30]
lea edi, [esp + ecx*4 + 0x8c]
cmp dword [esp + 0x30], 0xff
jge 0x4a8b41
mov ecx, dword [edx]
cmp ecx, dword [ebp + 4]
je 0x4a8b2d
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 0x4a8b0e
mov al, byte [esi + 0xce634]
cmp al, 0xf0
jb 0x4a8b62
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 0x4a8b6a
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.004a99d0
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.005faa4c
mov edi, eax
mov eax, 0x51eb851f
mov ecx, edi
imul ecx, dword [0x64c4c4]
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.004ab260
cmp eax, 1
jne 0x4a8c5f
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 0x4a97e5
cmp dword [0x64c4c4], 0xffffffff
je 0x4a8c86
mov ecx, dword [esp + 0x4c]
mov eax, dword [esp + 0x6c]
cmp ecx, eax
jg 0x4a97e5
cmp dword [esp + 0x4c], 0x4e20
jg 0x4a97e5
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.004a99d0
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 0x4a8d46
mov al, byte [esp + 0x4b8]
fld dword [esp + 0x28]
test al, al
je 0x4a8d33
fsub dword [esp + 0x4a0]
fcomp dword [0x61c9a0]
fnstsw ax
test ah, 1
jne 0x4a9766
jmp 0x4a8d84
fcomp dword [0x61b598]
fnstsw ax
test ah, 1
jne 0x4a9766
jmp 0x4a8d84
mov edx, dword [esp + 0x40]
mov ecx, dword [esp + 0x49c]
push edx
call fcn.0052bc30
fsub dword [esp + 0x4a0]
fcomp dword [0x61c9a0]
fnstsw ax
test ah, 1
jne 0x4a9766
fld dword [esp + 0x28]
fcomp dword [0x61b598]
fnstsw ax
test ah, 1
jne 0x4a9766
cmp ebp, dword [esp + 0x54]
jl 0x4a8da0
cmp ebp, dword [esp + 0x64]
jg 0x4a8da0
cmp edi, dword [esp + 0x60]
jl 0x4a8da0
cmp edi, dword [esp + 0x5c]
jle 0x4a9766
mov eax, dword [esp + 0x2c]
mov ecx, dword [esp + 0x48]
cmp eax, ecx
jge 0x4a8dc4
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 0x4a8ebd
mov ebp, edi
lea edi, [ecx + ecx]
cmp edi, ebp
jge 0x4a8e55
mov eax, dword [esi + edi*8 + 0x4f620]
mov edx, dword [esi + edi*8 + 0x4f628]
cmp eax, edx
jle 0x4a8e55
inc edi
mov edx, dword [esp + 0x24]
mov eax, dword [esi + edi*8 + 0x4f620]
cmp edx, eax
jl 0x4a8e93
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 0x4a8e3b
cmp ecx, 1
je 0x4a8eb9
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.0x4a8ee1
jmp dword [eax*4 + 0x4a9958]
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 0x4a8f1b
and eax, 7
jmp 0x4a8f20
inc ebx
jmp case.default.0x4a8ee1
mov eax, dword [esp + 0x20]
inc eax
jmp 0x4a8eee
dec ebx
jmp case.default.0x4a8ee1
mov eax, 8
mov edx, dword [esp + 0x24]
mov ecx, dword [eax*4 + str.8p]
test edx, ecx
jne 0x4a96a7
test ebx, ebx
jl 0x4a96a7
mov eax, dword [esp + 0x20]
test eax, eax
jl 0x4a96a7
cmp ebx, dword [esi + 4]
jge 0x4a96a7
cmp eax, dword [esi + 8]
jge 0x4a96a7
cmp ebx, dword [esp + 0x48c]
jne 0x4a8f6f
cmp eax, dword [esp + 0x490]
je 0x4a96a7
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.004a99d0
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.004a99d0
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.004a99d0
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 0x4a9069
and al, 7
cmp al, 8
mov byte [esp + 0x13], al
jae 0x4a9021
mov eax, dword [esp + 0x2c]
mov edx, edi
cmp dword [esi + eax*4 + 0xfe18], edx
jle 0x4a96a7
mov ecx, dword [0x66c984]
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 0x4a90a9
mov ebp, dword [esp + 0x28]
cmp ebp, 6
ja case.0x4a904d.1
jmp dword [ebp*4 + 0x4a9978]
test dword [edi + ebx*4 + 4], eax
jne 0x4a90a5
mov ecx, dword [ecx + edx*4 + 4]
test dword [ecx + ebx*4], eax
je case.0x4a904d.1
jmp 0x4a90a5
mov byte [esp + 0x13], 0xff
jmp 0x4a9021
mov ecx, dword [ecx + edx*4 + 4]
test dword [ecx + ebx*4], eax
jne 0x4a90a5
test dword [edi + ebx*4 - 4], eax
je case.0x4a904d.1
jmp 0x4a90a5
test dword [edi + ebx*4 - 4], eax
jne 0x4a90a5
mov ecx, dword [ecx + edx*4 - 4]
test dword [ecx + ebx*4], eax
je case.0x4a904d.1
jmp 0x4a90a5
mov ecx, dword [ecx + edx*4 - 4]
test dword [ecx + ebx*4], eax
jne 0x4a90a5
test dword [edi + ebx*4 + 4], eax
je case.0x4a904d.1
mov ebp, dword [esp + 0x14]
mov edi, dword [esi + 0xce83c]
or eax, 0xffffffff
cmp edi, eax
jne 0x4a90ce
cmp dword [esi + 0xce840], eax
jne 0x4a90ce
cmp dword [esi + 0xce844], eax
je 0x4a96a7
mov edx, dword [esp + 0x20]
mov eax, dword [esi + 0xc]
mov ecx, dword [eax + 0x8e8c]
lea eax, [ebx*8]
sub eax, ebx
mov ecx, dword [ecx + edx*4]
mov al, byte [ecx + eax*4 + 5]
mov byte [esp + 0x7c], al
mov eax, dword [esp + 0x7c]
and eax, 0xff
cmp eax, edi
je 0x4a9116
cmp eax, dword [esi + 0xce840]
je 0x4a9116
cmp eax, dword [esi + 0xce844]
jne 0x4a96a7
mov edx, dword [esp + 0x20]
jmp 0x4a9116
mov ebp, dword [esp + 0x14]
mov eax, dword [esp + 0x70]
mov byte [esp + 0x1b], 0
cmp ebx, eax
jne 0x4a9129
cmp edx, dword [esp + 0x68]
je 0x4a9141
cmp ebx, dword [esp + 0x54]
jl 0x4a9146
cmp ebx, dword [esp + 0x64]
jg 0x4a9146
cmp edx, dword [esp + 0x60]
jl 0x4a9146
cmp edx, dword [esp + 0x5c]
jg 0x4a9146
mov byte [esp + 0x1b], 1
mov ecx, dword [esp + 0x74]
mov dword [esp + 0x14], 1
test ecx, ebp
je 0x4a9287
mov edx, ebp
and edx, 0x3f00
cmp edx, 0x500
jne 0x4a9256
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 0x4a9304
mov ecx, dword [esi + 0xc]
mov edi, dword [esp + 0x20]
lea edx, [ebx*8]
mov eax, dword [ecx + 0x8e8c]
sub edx, ebx
mov eax, dword [eax + edi*4]
test byte [eax + edx*4 + 0xb], 0x60
je 0x4a9304
lea edx, [esp + 0x80]
lea eax, [esp + 0x84]
push edx
mov edx, edi
push eax
push edx
push ebx
call fcn.0047cec0
test al, al
je 0x4a9304
mov eax, dword [esi + 0xc]
mov ecx, dword [eax + 0x8e8c]
mov eax, dword [esp + 0x84]
lea edx, [eax*8]
sub edx, eax
mov eax, dword [esp + 0x80]
mov ecx, dword [ecx + eax*4]
xor eax, eax
lea ebp, [ecx + edx*4]
xor edx, edx
mov dl, byte [ebp + 0xd]
mov edi, edx
test edi, edi
jle 0x4a9304
mov edx, dword [ebp + 0x14]
mov ecx, dword [edx]
mov ebp, dword [ecx + 8]
cmp word [ebp + 0x16], 0x27
je 0x4a922a
inc eax
add edx, 4
cmp eax, edi
jl 0x4a9208
mov eax, 0xfe
mov dword [esp + 0x14], eax
jmp 0x4a9460
mov edx, dword [esp + 0x49c]
mov eax, dword [ecx]
mov edx, dword [edx + 0xc]
mov edx, dword [edx + 0x9c]
push edx
call dword [eax + 0x2e0]
cmp eax, 1
je 0x4a927c
mov eax, 0xfe
mov dword [esp + 0x14], eax
jmp 0x4a9460
mov al, byte [esp + 0x1b]
test al, al
je 0x4a9304
cmp al, 1
jne 0x4a9287
mov eax, dword [esp + 0x40]
test eax, eax
jne 0x4a9287
mov eax, 0xfe
mov dword [esp + 0x14], eax
jmp 0x4a9460
mov eax, dword [0x66c984]
mov ecx, dword [esp + 0x74]
jmp 0x4a928c
mov eax, dword [0x66c984]
mov edx, dword [esp + 0x28]
cmp edx, 6
ja case.0x4a9295.1
jmp dword [edx*4 + 0x4a9994]
mov eax, dword [eax + 0x1c]
mov edx, dword [esp + 0x20]
mov edi, dword [eax + edx*4]
test dword [edi + ebx*4 + 4], ecx
jne 0x4a9304
mov eax, dword [eax + edx*4 + 4]
mov edx, dword [eax + ebx*4]
jmp 0x4a9300
mov eax, dword [eax + 0x1c]
mov edx, dword [esp + 0x20]
mov edi, dword [eax + edx*4 + 4]
test dword [edi + ebx*4], ecx
jne 0x4a9304
mov edx, dword [eax + edx*4]
test dword [edx + ebx*4 - 4], ecx
jmp 0x4a9302
mov eax, dword [eax + 0x1c]
mov edx, dword [esp + 0x20]
lea eax, [eax + edx*4]
mov edx, dword [eax]
test dword [edx + ebx*4 - 4], ecx
jne 0x4a9304
mov eax, dword [eax - 4]
mov edx, dword [eax + ebx*4]
jmp 0x4a9300
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 0x4a9304
mov eax, dword [eax]
mov edx, dword [eax + ebx*4 + 4]
test ecx, edx
je case.0x4a9295.1
mov eax, 0xfe
mov dword [esp + 0x14], eax
jmp 0x4a9460
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.004a9a20
cmp al, 1
jne 0x4a933e
mov eax, 0xfe
mov dword [esp + 0x14], eax
jmp 0x4a9460
mov eax, dword [esp + 0x28]
cmp eax, 6
ja case.0x4a934b.1
jmp dword [eax*4 + 0x4a99b0]
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.004a9a20
cmp al, 1
je 0x4a9450
mov edx, dword [esp + 0x20]
lea ecx, [esp + 0x8c]
push edi
inc edx
push ecx
push edx
push ebx
mov ecx, esi
call fcn.004a9a20
cmp al, 1
jne case.0x4a934b.1
mov eax, 0xfe
mov dword [esp + 0x14], eax
jmp 0x4a9460
mov ecx, dword [esp + 0x20]
lea eax, [esp + 0x8c]
push edi
inc ecx
push eax
push ecx
push ebx
mov ecx, esi
call fcn.004a9a20
cmp al, 1
je 0x4a9450
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.004a9a20
cmp al, 1
jne case.0x4a934b.1
mov eax, 0xfe
mov dword [esp + 0x14], eax
jmp 0x4a9460
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.004a9a20
cmp al, 1
je 0x4a9450
mov eax, dword [esp + 0x20]
lea edx, [esp + 0x8c]
push edi
dec eax
push edx
push eax
jmp 0x4a9382
mov edx, dword [esp + 0x20]
lea ecx, [esp + 0x8c]
push edi
dec edx
push ecx
push edx
push ebx
mov ecx, esi
call fcn.004a9a20
cmp al, 1
je 0x4a9450
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.004a9a20
cmp al, 1
jne case.0x4a934b.1
mov eax, 0xfe
mov dword [esp + 0x14], eax
jmp 0x4a9460
mov eax, 0xfe
mov ecx, dword [esi + 0xce83c]
cmp ecx, 0xffffffff
mov ecx, dword [esp + 0x14]
je 0x4a949d
cmp ecx, eax
jne 0x4a9554
mov eax, dword [esi + 0xc]
lea edx, [ebx*8]
sub edx, ebx
mov ecx, dword [eax + 0x8e8c]
mov eax, dword [esp + 0x20]
mov ecx, dword [ecx + eax*4]
mov al, byte [ecx + edx*4 + 0xd]
test al, al
jne 0x4a94a5
jmp 0x4a9554
cmp ecx, eax
jne 0x4a9554
cmp dword [esp + 0x4b0], 0xffffffff
je 0x4a96a7
lea ebp, [ebx - 1]
test ebp, ebp
jge 0x4a94bc
xor ebp, ebp
lea eax, [ebx + 1]
xor cl, cl
cmp ebp, eax
mov byte [esp + 0x12], cl
jg 0x4a9554
cmp ebp, dword [esi + 4]
jge 0x4a954b
test cl, cl
jne 0x4a954b
mov eax, dword [esp + 0x20]
lea edi, [eax - 1]
test edi, edi
jge 0x4a94e3
xor edi, edi
inc eax
cmp edi, eax
mov dword [esp + 0x88], eax
jg 0x4a9543
cmp edi, dword [esi + 8]
jge 0x4a9543
test cl, cl
jne 0x4a9543
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.005eb990
mov ecx, dword [esp + 0x14]
test ecx, ecx
jle 0x4a9533
cmp eax, 0xffffffff
jne 0x4a9533
mov byte [esp + 0x12], 1
mov eax, dword [esp + 0x88]
mov cl, byte [esp + 0x12]
inc edi
cmp edi, eax
jle 0x4a94ef
inc ebp
lea eax, [ebx + 1]
cmp ebp, eax
jle 0x4a94cd
cmp cl, 1
je 0x4a96a7
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 0x4a9573
and al, 7
mov byte [esp + 0x38], al
jmp 0x4a9578
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 0x4a958f
inc ecx
cmp byte [esp + 0x1b], 1
jne 0x4a9598
xor ecx, ecx
mov al, byte [esp + 0x13]
mov edi, dword [esp + 0x2c]
cmp al, 8
jae 0x4a95b1
cmp ecx, dword [esi + edi*4 + 0xfe18]
jge 0x4a96a7
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 0x4a96a0
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 0x4a96a0
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 0x4a9644
cmp ebp, ecx
je 0x4a96a0
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 0x4a96df
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 0x4a8edc
mov ecx, dword [esp + 0x4c]
mov eax, dword [esi + 0xce62c]
inc ecx
test eax, eax
mov dword [esp + 0x4c], ecx
jle 0x4a97e5
jmp 0x4a8c6d
mov edi, dword [esp + 0x4b4]
test edi, edi
je 0x4a9732
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.004a9ab0
test al, al
jne 0x4a9732
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 0x4a9757
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 0x4a97b9
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.004a9ab0
test al, al
jne 0x4a97b9
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 0x4a97d6
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 0x4a98b9
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 0x4a98b9
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 0x4a9861
cmp edi, ebp
je 0x4a98b9
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 0x4a990c
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.004a9ab0
test al, al
jne 0x4a990c
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 0x4a9947
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 0x4a9939
mov dword [eax], edi
mov eax, dword [esp + 0x4b4]
cmp eax, edi
je 0x4a9947
mov dword [eax + 0xc], edi
pop edi
pop esi
pop ebp
xor al, al
pop ebx
add esp, 0x478
ret 0x30