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

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
push 0xffffffffffffffff
push 0x64c09e
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x64
push ebx
push esi
push edi
mov ebx, ecx
call fcn.0047f430
mov eax, dword [0x828ad8]
mov dword [ebx + 0x8c], eax
mov ecx, dword [0x828ad0]
mov dword [ebx + 0x88], ecx
mov edx, dword [0x828ad4]
mov dword [ebx + 0x9f], edx
mov eax, dword [0x828adc]
mov dword [ebx + 0x9b], eax
mov eax, dword [ebx + 0x8c]
test eax, eax
je 0x492216
mov eax, ecx
test eax, eax
je 0x492216
lea ecx, [esp + 0xc]
call fcn.00643d62
mov ecx, dword [ebx + 0x74]
mov eax, dword [ebx + 0x78]
push ecx
push eax
push eax
mov dword [esp + 0x84], 0
call fcn.004952b0
mov edi, eax
mov eax, dword [ebx + 0x78]
add esp, 0xc
cmp edi, eax
mov dword [esp + 0x34], eax
mov esi, edi
je 0x4914a6
push 0
mov ecx, esi
call fcn.00492be0
mov eax, dword [esp + 0x34]
add esi, 4
cmp esi, eax
jne 0x491492
mov dword [ebx + 0x78], edi
mov eax, dword [ebx + 0x80]
cmp eax, 3
jne 0x491bc2
mov eax, dword [ebx + 0x68]
mov ecx, dword [ebx + 0x64]
cmp eax, eax
mov dword [esp + 0x2c], 0
mov dword [esp + 0x1c], ecx
mov edx, eax
je 0x4914ef
mov edi, dword [esp + 0x1c]
mov ecx, 9
mov esi, edx
add edx, 0x24
rep movsd dword es:[edi], dword [esi]
mov edi, dword [esp + 0x1c]
add edi, 0x24
cmp edx, eax
mov dword [esp + 0x1c], edi
jne 0x4914d0
mov eax, dword [ebx + 0x68]
mov edi, dword [esp + 0x1c]
lea esi, [ebx + 0x60]
push eax
push edi
mov ecx, esi
call fcn.004d5f40
mov edx, dword [ebp + 8]
mov dword [esi + 8], edi
mov ecx, 9
xor eax, eax
lea edi, [esp + 0x4c]
push edx
rep stosd dword es:[edi], eax
mov ecx, dword [0x826818]
call fcn.004468a0
test eax, eax
mov dword [esp + 0x20], eax
je 0x492205
mov eax, dword [ebx + 0x9b]
mov dword [esp + 0x24], 0
test eax, eax
jle 0x4917a4
xor eax, eax
mov dword [esp + 0x10], eax
mov ecx, dword [ebx + 0x8c]
mov dword [esp + 0x28], 0
cmp word [ecx + eax + 7], 0
jle 0x491780
mov dword [esp + 0x14], eax
mov eax, dword [ebx + 0x8c]
mov ecx, dword [esp + 0x14]
mov edi, dword [ebp + 8]
lea esi, [ecx + eax + 9]
mov dl, byte [esi]
mov cl, byte [edi]
mov al, dl
cmp dl, cl
jne 0x4915a0
test al, al
je 0x49159c
mov cl, byte [esi + 1]
mov dl, byte [edi + 1]
mov al, cl
cmp cl, dl
jne 0x4915a0
add esi, 2
add edi, 2
test al, al
jne 0x491578
xor eax, eax
jmp 0x4915a5
sbb eax, eax
sbb eax, 0xffffffff
test eax, eax
jne 0x491755
mov eax, dword [ebx + 0x9f]
xor edx, edx
test eax, eax
jle 0x49165f
mov ecx, dword [esp + 0x10]
mov eax, dword [ebx + 0x8c]
mov edi, dword [ebx + 0x88]
add eax, ecx
mov dword [esp + 0x34], eax
mov dword [esp + 0x30], edi
mov esi, dword [esp + 0x34]
mov cl, byte [esi]
mov al, cl
cmp cl, byte [edi]
jne 0x4915ff
test al, al
je 0x4915fb
mov cl, byte [esi + 1]
mov al, cl
cmp cl, byte [edi + 1]
jne 0x4915ff
add esi, 2
add edi, 2
test al, al
jne 0x4915db
xor eax, eax
jmp 0x491604
sbb eax, eax
sbb eax, 0xffffffff
test eax, eax
je 0x491623
mov edi, dword [esp + 0x30]
mov eax, dword [ebx + 0x9f]
inc edx
add edi, 0x8a
cmp edx, eax
mov dword [esp + 0x30], edi
jl 0x4915d7
jmp 0x49165f
lea eax, [edx + edx*2]
lea esi, [esp + 0x4c]
shl eax, 3
sub eax, edx
mov dword [esp + 0x34], esi
lea ecx, [eax + eax*2]
mov eax, dword [ebx + 0x88]
lea edi, [eax + ecx*2 + 7]
or ecx, 0xffffffff
xor eax, eax
repne scasb al, byte es:[edi]
not ecx
sub edi, ecx
mov eax, ecx
mov esi, edi
mov edi, dword [esp + 0x34]
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, eax
and ecx, 3
rep movsb byte es:[edi], byte [esi]
cmp edx, dword [ebx + 0x9f]
jl 0x49169b
mov ecx, dword [esp + 0x10]
mov eax, dword [ebx + 0x8c]
lea esi, [esp + 0x4c]
lea edi, [eax + ecx]
or ecx, 0xffffffff
xor eax, eax
mov dword [esp + 0x34], esi
repne scasb al, byte es:[edi]
not ecx
sub edi, ecx
mov eax, ecx
mov esi, edi
mov edi, dword [esp + 0x34]
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, eax
and ecx, 3
rep movsb byte es:[edi], byte [esi]
mov ecx, dword [ebx + 0x8c]
mov esi, dword [esp + 0x14]
mov edi, dword [esi + ecx + 0x10]
lea eax, [esi + ecx + 0x10]
mov dword [esp + 0x60], edi
fld dword [eax]
mov eax, dword [esp + 0x20]
fmul dword [0x65f9a8]
fld dword [eax + 0x5c]
fmul dword [0x668130]
cmp edx, dword [ebx + 0x9f]
fdivp st(1)
fstp dword [esp + 0x64]
jge 0x49170c
lea eax, [edx + edx*2]
shl eax, 3
sub eax, edx
lea edx, [eax + eax*2]
mov eax, dword [ebx + 0x88]
fld dword [eax + edx*2 + 0x7a]
fcomp dword [0x65f998]
lea edx, [eax + edx*2 + 0x7a]
fnstsw ax
test ah, 1
jne 0x49170c
fld dword [esi + ecx + 0x14]
fmul dword [0x65f9a8]
fdiv dword [edx]
fstp dword [esp + 0x68]
jmp 0x491714
mov dword [esp + 0x68], 0x4ae99762
mov edx, dword [esp + 0x14]
mov eax, dword [ebx + 0x68]
fld dword [edx + ecx + 0x18]
lea ecx, [ebx + 0x60]
lea edx, [esp + 0x4c]
fstp dword [esp + 0x6c]
push edx
push 1
push eax
call fcn.00492810
mov esi, dword [esp + 0x2c]
lea ecx, [ebx + 0xa7]
push esi
push 0
push 0
push 0
push 0
push 4
push 0
push esi
call fcn.00643d5c
inc esi
mov dword [esp + 0x2c], esi
mov ecx, dword [ebx + 0x8c]
mov edx, dword [esp + 0x10]
mov eax, dword [esp + 0x28]
mov esi, dword [esp + 0x14]
movsx ecx, word [ecx + edx + 7]
inc eax
add esi, 0x13
cmp eax, ecx
mov dword [esp + 0x28], eax
mov dword [esp + 0x14], esi
jl 0x491567
mov ecx, dword [esp + 0x24]
mov eax, dword [esp + 0x10]
mov edx, dword [ebx + 0x9b]
inc ecx
add eax, 0xc7
cmp ecx, edx
mov dword [esp + 0x24], ecx
mov dword [esp + 0x10], eax
jl 0x491549
mov eax, dword [ebx + 0x64]
test eax, eax
jne 0x4917af
xor edx, edx
jmp 0x4917c5
mov ecx, dword [ebx + 0x68]
sub ecx, eax
mov eax, 0x38e38e39
imul ecx
sar edx, 3
mov eax, edx
shr eax, 0x1f
add edx, eax
mov eax, dword [ebx + 0x64]
push 0x4913c0
push 0x24
push edx
push eax
call dword [fcn.0065f240]
add esp, 0x10
xor esi, esi
mov dword [esp + 0x10], esi
mov eax, dword [ebx + 0x64]
test eax, eax
je 0x49197c
mov ecx, dword [ebx + 0x68]
sub ecx, eax
mov eax, 0x38e38e39
imul ecx
sar edx, 3
mov ecx, edx
shr ecx, 0x1f
add edx, ecx
cmp esi, edx
jae 0x49197c
lea eax, [esi + 1]
lea edx, [esp + 0xc]
push eax
push 0x69a740
push edx
mov dword [esp + 0x40], eax
call fcn.00643d50
mov eax, dword [esp + 0x18]
add esp, 0xc
lea edi, [ebx + 0xa7]
push 0
push 0
push 0
push 0
push eax
push esi
push 1
mov ecx, edi
call fcn.006440aa
mov ecx, dword [ebx + 0x64]
mov eax, dword [esp + 0x10]
add ecx, eax
push ecx
push 1
push esi
mov ecx, edi
call fcn.00643d56
mov edx, dword [ebx + 0x64]
mov eax, dword [esp + 0x10]
sub esp, 8
lea ecx, [esp + 0x14]
fld dword [edx + eax + 0x14]
fmul dword [0x665f00]
fstp qword [esp]
push 0x69b0ec
push ecx
call fcn.00643d50
mov edx, dword [esp + 0x1c]
add esp, 0x10
mov ecx, edi
push edx
push 2
push esi
call fcn.00643d56
mov eax, dword [ebx + 0x64]
mov ecx, dword [esp + 0x10]
fld dword [eax + ecx + 0x18]
fstp qword [esp + 0x44]
fld qword [0x668268]
fcomp qword [esp + 0x44]
fnstsw ax
test ah, 0x40
je 0x4918b3
push 0x6a2a34
jmp 0x4918d4
mov edx, dword [esp + 0x48]
mov eax, dword [esp + 0x44]
push edx
push eax
lea ecx, [esp + 0x14]
push 0x69b0ec
push ecx
call fcn.00643d50
mov edx, dword [esp + 0x1c]
add esp, 0x10
push edx
push 3
push esi
mov ecx, edi
call fcn.00643d56
mov eax, dword [ebx + 0x64]
mov ecx, dword [esp + 0x10]
fld dword [eax + ecx + 0x1c]
fstp qword [esp + 0x44]
fld qword [0x668268]
fcomp qword [esp + 0x44]
fnstsw ax
test ah, 0x40
je 0x491905
push 0x6a2a34
jmp 0x491926
mov edx, dword [esp + 0x48]
mov eax, dword [esp + 0x44]
push edx
push eax
lea ecx, [esp + 0x14]
push 0x69b0ec
push ecx
call fcn.00643d50
mov edx, dword [esp + 0x1c]
add esp, 0x10
push edx
push 4
push esi
mov ecx, edi
call fcn.00643d56
mov eax, dword [ebx + 0x64]
mov ecx, dword [esp + 0x10]
sub esp, 8
lea edx, [esp + 0x14]
fld dword [eax + ecx + 0x20]
fmul dword [0x665f00]
fstp qword [esp]
push 0x69b0ec
push edx
call fcn.00643d50
mov eax, dword [esp + 0x1c]
add esp, 0x10
mov ecx, edi
push eax
push 5
push esi
call fcn.00643d56
mov eax, dword [esp + 0x10]
mov esi, dword [esp + 0x34]
add eax, 0x24
mov dword [esp + 0x10], eax
jmp 0x4917e0
mov eax, dword [ebx + 0x64]
mov dword [esp + 0x18], 0
test eax, eax
mov dword [esp + 0x10], 0
jne 0x491997
xor edx, edx
jmp 0x4919ad
mov ecx, dword [ebx + 0x68]
sub ecx, eax
mov eax, 0x38e38e39
imul ecx
sar edx, 3
mov ecx, edx
shr ecx, 0x1f
add edx, ecx
test edx, edx
mov dword [esp + 0x1c], 0
jle 0x4919d2
mov esi, dword [ebx + 0x64]
xor eax, eax
mov ecx, edx
fld dword [esp + 0x10]
fadd dword [esi + eax + 0x14]
add eax, 0x24
dec ecx
fstp dword [esp + 0x10]
jne 0x4919c0
cmp edx, 9
jg 0x491a9e
test edx, edx
jle 0x492205
xor esi, esi
mov edi, 0x6a12ac
mov dword [esp + 0x2c], edx
mov eax, dword [ebx + 0x64]
sub esp, 8
lea edx, [esp + 0x14]
fld dword [eax + esi + 0x14]
fmul dword [0x65f9a8]
add eax, esi
fdiv dword [esp + 0x18]
fstp qword [esp]
push eax
push 0x6a2a28
push edx
call fcn.00643d50
mov eax, dword [ebx + 0x64]
add esp, 0x14
fld dword [eax + esi + 0x14]
fmul dword [0x668260]
fdiv dword [esp + 0x10]
fadd qword [0x65f9a0]
call fcn.00645030
mov edx, dword [edi]
lea ecx, [esp + 0xc]
push ecx
push eax
push 0xffffff
push edx
lea ecx, [ebx + 0xf7]
call fcn.00547aa0
mov eax, dword [ebx + 0x64]
lea ecx, [esp + 0x30]
add eax, esi
push eax
call fcn.00643d2c
mov eax, dword [ebx + 0x78]
lea ecx, [ebx + 0x70]
lea edx, [esp + 0x30]
mov byte [esp + 0x78], 1
push edx
push 1
push eax
call fcn.00492590
lea ecx, [esp + 0x30]
mov byte [esp + 0x78], 0
call fcn.00643d26
mov eax, dword [esp + 0x2c]
add edi, 4
add esi, 0x24
dec eax
mov dword [esp + 0x2c], eax
jne 0x4919ee
jmp 0x492205
lea eax, [ebx + 0xf7]
xor esi, esi
mov dword [esp + 0x2c], eax
mov edi, 0x6a12ac
mov eax, dword [ebx + 0x64]
sub esp, 8
fld dword [esp + 0x20]
fadd dword [eax + esi + 0x14]
lea ecx, [esp + 0x14]
fstp dword [esp + 0x20]
fld dword [eax + esi + 0x14]
fmul dword [0x65f9a8]
add eax, esi
fdiv dword [esp + 0x18]
fstp qword [esp]
push eax
push 0x6a2a28
push ecx
call fcn.00643d50
mov eax, dword [ebx + 0x64]
add esp, 0x14
fld dword [eax + esi + 0x14]
fmul dword [0x668260]
fdiv dword [esp + 0x10]
fadd qword [0x65f9a0]
call fcn.00645030
mov edx, dword [esp + 0x1c]
mov ecx, dword [esp + 0x2c]
add edx, eax
mov dword [esp + 0x1c], edx
lea edx, [esp + 0xc]
push edx
push eax
mov eax, dword [edi]
push 0xffffff
push eax
call fcn.00547aa0
mov eax, dword [ebx + 0x64]
lea ecx, [esp + 0x30]
add eax, esi
push eax
call fcn.00643d2c
mov eax, dword [ebx + 0x78]
lea ecx, [ebx + 0x70]
lea edx, [esp + 0x30]
mov byte [esp + 0x78], 2
push edx
push 1
push eax
call fcn.00492590
lea ecx, [esp + 0x30]
mov byte [esp + 0x78], 0
call fcn.00643d26
add edi, 4
add esi, 0x24
cmp edi, 0x6a12d0
jl 0x491aaf
fld dword [esp + 0x18]
fmul dword [0x65f9a8]
mov ebx, dword [esp + 0x1c]
sub esp, 8
lea eax, [esp + 0x14]
mov esi, 0x168
fdiv dword [esp + 0x18]
sub esi, ebx
fsubr dword [0x65f9a8]
fstp qword [esp]
push 0x6a2a1c
push eax
call fcn.00643d50
mov edx, dword [0x6a12d4]
add esp, 0x10
lea ecx, [esp + 0xc]
push ecx
mov ecx, dword [esp + 0x30]
push esi
push 0xffffff
push edx
call fcn.00547aa0
jmp 0x492205
mov ecx, dword [ebx + 0x9b]
xor eax, eax
cmp ecx, eax
mov dword [esp + 0x34], eax
jle 0x492205
mov dword [esp + 0x14], eax
mov esi, dword [esp + 0x14]
mov eax, dword [ebx + 0x8c]
mov edi, dword [ebp + 8]
add esi, eax
mov cl, byte [esi]
mov dl, byte [edi]
mov al, cl
cmp cl, dl
jne 0x491c11
test al, al
je 0x491c0d
mov dl, byte [esi + 1]
mov cl, byte [edi + 1]
mov al, dl
cmp dl, cl
jne 0x491c11
add esi, 2
add edi, 2
test al, al
jne 0x491be9
xor eax, eax
jmp 0x491c16
sbb eax, eax
sbb eax, 0xffffffff
test eax, eax
jne 0x4921e0
fld dword [ebx + 0x97]
fcomp dword [0x65f998]
fnstsw ax
test ah, 1
jne 0x4921e0
lea ecx, [esp + 0x1c]
call fcn.00643d62
xor esi, esi
lea ecx, [ebx + 0xf7]
mov byte [esp + 0x78], 3
mov dword [esp + 0x30], 0
mov dword [esp + 0x2c], esi
call fcn.00547e30
mov eax, dword [ebx + 0x8c]
mov ecx, dword [esp + 0x14]
cmp word [ecx + eax + 7], si
jle 0x49217d
mov edx, ecx
mov dword [esp + 0x28], 0x6a12ac
mov dword [esp + 0x10], edx
lea eax, [esi + 1]
mov dword [esp + 0x40], eax
push eax
lea eax, [esp + 0x10]
push 0x69a740
push eax
call fcn.00643d50
mov ecx, dword [esp + 0x18]
add esp, 0xc
lea edi, [ebx + 0xa7]
push 0
push 0
push 0
push 0
push ecx
push esi
push 1
mov ecx, edi
call fcn.006440aa
mov edx, dword [ebx + 0x8c]
mov eax, dword [esp + 0x10]
lea ecx, [eax + edx + 9]
push ecx
push 1
push esi
mov ecx, edi
call fcn.00643d56
mov edx, dword [ebx + 0x8c]
mov eax, dword [esp + 0x10]
lea ecx, [eax + edx + 9]
push ecx
mov ecx, dword [0x826818]
call fcn.004468a0
test eax, eax
jne 0x491cfe
mov edx, dword [ebx + 0x8c]
mov eax, dword [esp + 0x10]
lea ecx, [eax + edx + 9]
push ecx
jmp 0x491d02
add eax, 0x18
push eax
lea ecx, [esp + 0x20]
call fcn.006440b6
mov edx, dword [esp + 0x1c]
lea edi, [ebx + 0xa7]
push edx
push 2
push esi
mov ecx, edi
call fcn.00643d56
mov eax, dword [ebx + 0x8c]
mov ecx, dword [esp + 0x10]
sub esp, 8
lea edx, [esp + 0x14]
fld dword [ecx + eax + 0x10]
fstp qword [esp]
push 0x6a2a14
push edx
call fcn.00643d50
mov eax, dword [esp + 0x1c]
add esp, 0x10
mov ecx, edi
push eax
push 3
push esi
call fcn.00643d56
mov ecx, dword [ebx + 0x8c]
mov edx, dword [esp + 0x10]
sub esp, 8
lea eax, [esp + 0x14]
fld dword [edx + ecx + 0x14]
fmul dword [0x65f9a8]
fdiv dword [ebx + 0x97]
fstp qword [esp]
push 0x69b0ec
push eax
call fcn.00643d50
mov ecx, dword [esp + 0x1c]
add esp, 0x10
push ecx
push 4
push esi
mov ecx, edi
call fcn.00643d56
mov edx, dword [ebx + 0x8c]
mov eax, dword [esp + 0x10]
sub esp, 8
lea ecx, [esp + 0x14]
fld dword [eax + edx + 0x18]
fstp qword [esp]
push 0x6a2a14
push ecx
call fcn.00643d50
mov edx, dword [esp + 0x1c]
add esp, 0x10
mov ecx, edi
push edx
push 5
push esi
call fcn.00643d56
mov eax, dword [ebx + 0x8c]
mov ecx, dword [esp + 0x10]
fld dword [esp + 0x30]
fadd dword [ecx + eax + 0x14]
lea edi, [ecx + eax + 0x14]
fstp dword [esp + 0x30]
fld dword [edi]
fmul dword [0x668260]
fdiv dword [ebx + 0x97]
fadd qword [0x65f9a0]
call fcn.00645030
fld dword [edi]
fmul dword [0x65f9a8]
mov ecx, dword [esp + 0x2c]
mov edx, dword [esp + 0x1c]
add ecx, eax
sub esp, 8
fdiv dword [ebx + 0x97]
mov dword [esp + 0x2c], eax
mov dword [esp + 0x34], ecx
fstp qword [esp]
push edx
lea eax, [esp + 0x18]
push 0x6a2a08
push eax
call fcn.00643d50
mov eax, dword [esp + 0x3c]
mov edx, dword [esp + 0x38]
add esp, 0x14
lea ecx, [esp + 0xc]
push ecx
mov ecx, dword [eax]
push edx
push 0xffffff
push ecx
lea ecx, [ebx + 0xf7]
call fcn.00547aa0
push esi
push 0
push 0
push 0
push 0
push 4
push 0
push esi
lea ecx, [ebx + 0xa7]
call fcn.00643d5c
mov edx, dword [ebx + 0x8c]
mov eax, dword [esp + 0x10]
lea ecx, [eax + edx + 9]
push ecx
lea ecx, [esp + 0x1c]
call fcn.00643d2c
mov esi, dword [ebx + 0x78]
mov edx, dword [ebx + 0x7c]
sub edx, esi
mov byte [esp + 0x78], 4
sar edx, 2
cmp edx, 1
mov edi, esi
jae 0x491fe6
mov ecx, dword [ebx + 0x74]
test ecx, ecx
je 0x491eb7
mov eax, esi
sub eax, ecx
sar eax, 2
cmp eax, 1
ja 0x491ebc
mov eax, 1
test ecx, ecx
jne 0x491ec4
xor esi, esi
jmp 0x491ec9
sub esi, ecx
sar esi, 2
add eax, esi
test eax, eax
mov dword [esp + 0x3c], eax
jge 0x491ed5
xor eax, eax
shl eax, 2
push eax
call fcn.00643b70
mov dword [esp + 0x3c], eax
mov esi, eax
mov eax, dword [ebx + 0x74]
add esp, 4
cmp eax, edi
mov dword [esp + 0x24], esi
mov dword [esp + 0x20], eax
je 0x491f25
mov dword [esp + 0x44], esi
test esi, esi
mov byte [esp + 0x78], 5
je 0x491f0f
mov ecx, dword [esp + 0x20]
push ecx
mov ecx, esi
call fcn.00643edc
mov eax, dword [esp + 0x20]
add esi, 4
add eax, 4
mov dword [esp + 0x24], esi
cmp eax, edi
mov dword [esp + 0x20], eax
jne 0x491ef6
mov dword [esp + 0x44], esi
mov dword [esp + 0x24], esi
test esi, esi
mov byte [esp + 0x78], 6
je 0x491f42
lea edx, [esp + 0x18]
mov ecx, esi
push edx
call fcn.00643edc
mov eax, dword [ebx + 0x78]
add esi, 4
cmp edi, eax
mov byte [esp + 0x78], 4
mov dword [esp + 0x20], esi
mov dword [esp + 0x24], eax
je 0x491f85
mov dword [esp + 0x44], esi
test esi, esi
mov byte [esp + 0x78], 7
je 0x491f72
push edi
mov ecx, esi
call fcn.00643edc
mov eax, dword [esp + 0x24]
add edi, 4
add esi, 4
cmp edi, eax
mov byte [esp + 0x78], 4
mov dword [esp + 0x20], esi
jne 0x491f59
mov edi, dword [ebx + 0x78]
mov esi, dword [ebx + 0x74]
cmp esi, edi
je 0x491f9d
mov ecx, esi
call fcn.00643d26
add esi, 4
cmp esi, edi
jne 0x491f8f
mov eax, dword [ebx + 0x74]
push eax
call fcn.00643cfc
mov edx, dword [esp + 0x3c]
mov eax, dword [esp + 0x40]
add esp, 4
lea ecx, [edx + eax*4]
mov dword [ebx + 0x7c], ecx
mov ecx, dword [ebx + 0x74]
test ecx, ecx
jne 0x491fcf
xor eax, eax
mov dword [ebx + 0x74], edx
lea eax, [edx + eax*4 + 4]
mov dword [ebx + 0x78], eax
jmp 0x49213e
mov eax, dword [ebx + 0x78]
mov dword [ebx + 0x74], edx
sub eax, ecx
sar eax, 2
lea eax, [edx + eax*4 + 4]
mov dword [ebx + 0x78], eax
jmp 0x49213e
mov eax, esi
sub eax, edi
sar eax, 2
cmp eax, 1
jae 0x4920ad
lea eax, [edi + 4]
cmp edi, esi
mov dword [esp + 0x20], eax
mov dword [esp + 0x24], edi
je 0x49203f
mov dword [esp + 0x44], eax
test eax, eax
mov byte [esp + 0x78], 8
je 0x492024
mov ecx, dword [esp + 0x24]
push ecx
mov ecx, dword [esp + 0x24]
call fcn.00643edc
mov eax, dword [esp + 0x20]
mov ecx, dword [esp + 0x24]
add eax, 4
add ecx, 4
mov byte [esp + 0x78], 4
cmp ecx, esi
mov dword [esp + 0x20], eax
mov dword [esp + 0x24], ecx
jne 0x492005
mov esi, dword [ebx + 0x78]
mov eax, 1
mov edx, esi
mov dword [esp + 0x3c], esi
sub edx, edi
sar edx, 2
sub eax, edx
je 0x49208a
mov dword [esp + 0x24], eax
mov dword [esp + 0x44], esi
test esi, esi
mov byte [esp + 0x78], 9
je 0x492073
lea eax, [esp + 0x18]
mov ecx, esi
push eax
call fcn.00643edc
mov eax, dword [esp + 0x24]
add esi, 4
dec eax
mov byte [esp + 0x78], 4
mov dword [esp + 0x3c], esi
mov dword [esp + 0x24], eax
jne 0x49205a
mov esi, dword [ebx + 0x78]
cmp edi, esi
je 0x49213a
lea ecx, [esp + 0x18]
push ecx
mov ecx, edi
call fcn.00644098
add edi, 4
cmp edi, esi
jne 0x492095
jmp 0x49213a
lea eax, [esi - 4]
mov ecx, esi
cmp eax, esi
mov dword [esp + 0x24], ecx
mov dword [esp + 0x44], eax
mov dword [esp + 0x20], eax
je 0x4920fc
mov dword [esp + 0x44], ecx
test ecx, ecx
mov byte [esp + 0x78], 0xa
je 0x4920e5
mov edx, dword [esp + 0x20]
mov ecx, dword [esp + 0x24]
push edx
call fcn.00643edc
mov eax, dword [esp + 0x20]
mov ecx, dword [esp + 0x24]
add eax, 4
add ecx, 4
cmp eax, esi
mov byte [esp + 0x78], 4
mov dword [esp + 0x24], ecx
mov dword [esp + 0x20], eax
jne 0x4920c2
mov ecx, dword [ebx + 0x78]
lea esi, [ecx - 4]
cmp edi, esi
je 0x492120
jmp 0x49210c
mov ecx, dword [esp + 0x3c]
sub esi, 4
sub ecx, 4
push esi
mov dword [esp + 0x40], ecx
call fcn.00644098
cmp esi, edi
jne 0x492108
lea esi, [edi + 4]
cmp edi, esi
je 0x49213a
lea eax, [esp + 0x18]
mov ecx, edi
push eax
call fcn.00644098
add edi, 4
cmp edi, esi
jne 0x492127
add dword [ebx + 0x78], 4
lea ecx, [esp + 0x18]
mov byte [esp + 0x78], 3
call fcn.00643d26
mov edx, dword [esp + 0x10]
mov ecx, dword [ebx + 0x8c]
mov edi, dword [esp + 0x28]
mov esi, dword [esp + 0x40]
add edx, 0x13
add edi, 4
mov dword [esp + 0x10], edx
mov edx, dword [esp + 0x14]
mov dword [esp + 0x28], edi
movsx eax, word [edx + ecx + 7]
cmp esi, eax
jl 0x491c7f
fld dword [ebx + 0x97]
fsub dword [esp + 0x30]
mov ecx, dword [esp + 0x2c]
mov esi, 0x168
sub esp, 8
sub esi, ecx
fmul dword [0x65f9a8]
lea ecx, [esp + 0x14]
fdiv dword [ebx + 0x97]
fstp qword [esp]
push 0x6a29f8
push ecx
call fcn.00643d50
mov eax, dword [0x6a12d4]
add esp, 0x10
lea edx, [esp + 0xc]
lea ecx, [ebx + 0xf7]
push edx
push esi
push 0xffffff
push eax
call fcn.00547aa0
lea ecx, [esp + 0x1c]
mov byte [esp + 0x78], 0
call fcn.00643d26
mov eax, dword [esp + 0x34]
mov edx, dword [esp + 0x14]
mov ecx, dword [ebx + 0x9b]
inc eax
add edx, 0xc7
cmp eax, ecx
mov dword [esp + 0x34], eax
mov dword [esp + 0x14], edx
jl 0x491bda
lea ecx, [esp + 0xc]
mov dword [esp + 0x78], 0xffffffff
call fcn.00643d26
mov ecx, dword [esp + 0x70]
pop edi
pop esi
mov dword fs:[0], ecx
pop ebx
mov esp, ebp
pop ebp
ret 4