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

Disassembly:
sub esp, 0x2b8
push ebx
push ebp
mov ebp, dword [esp + 0x2c4]
cmp byte [ebp + 0xa5], 1
mov ebx, dword [ebp + 0x14]
push esi
push edi
mov dword [esp + 0x74], ebx
je 0x648136
cmp byte [ebp + 0x140], 0
mov byte [ebp + 0x11c], 0
jne 0x64750c
mov esi, ebp
call fcn.00647470
mov eax, dword [ebp + 0x1c]
test byte [eax], 1
je 0x647855
cmp byte [ebp + 0xa4], 0
je 0x647536
lea esi, [ebp + 0x74]
lea edi, [ebp + 0xa8]
mov ecx, 0xc
rep movsd dword es:[edi], dword [esi]
jmp 0x647855
fld dword [ebp + 0x30]
sub esp, 0xc
fstp dword [esp + 8]
lea ecx, [esp + 0x1d4]
fld dword [ebp + 0x2c]
fstp dword [esp + 4]
fld dword [ebp + 0x28]
fstp dword [esp]
push ecx
call fcn.0057c977
fld dword [ebp + 0x70]
add esp, 4
fstp dword [esp + 8]
lea edx, [esp + 0x154]
fld dword [ebp + 0x6c]
fstp dword [esp + 4]
fld dword [ebp + 0x68]
fstp dword [esp]
push edx
call fcn.0057c5a8
mov eax, dword [ebp + 0x34]
add esp, 0x10
cmp eax, 3
ja case.default.0x64758d
jmp dword [eax*4 + 0x648144]
fld dword [ebp + 0x40]
sub esp, 0xc
fstp dword [esp + 8]
lea eax, [esp + 0xd4]
fld dword [ebp + 0x3c]
fstp dword [esp + 4]
fld dword [ebp + 0x38]
fstp dword [esp]
push eax
call fcn.0057c1b1
add esp, 0x10
jmp case.default.0x64758d
fld dword [ebp + 0x44]
lea ecx, [esp + 0x14]
fstp dword [esp + 0x14]
push ecx
fld dword [ebp + 0x40]
lea edx, [esp + 0x80]
fchs
push edx
fstp dword [esp + 0x64]
lea eax, [esp + 0xd0]
fld dword [esp + 0x64]
push eax
fst dword [esp + 0x24]
fld dword [ebp + 0x3c]
fstp dword [esp + 0x28]
fld dword [ebp + 0x38]
fstp dword [esp + 0x2c]
fld dword [ebp + 0x40]
fstp dword [esp + 0x30]
fld dword [ebp + 0x44]
fstp dword [esp + 0x34]
fld dword [ebp + 0x38]
fchs
fstp dword [esp + 0x68]
fld dword [esp + 0x68]
fst dword [esp + 0x38]
fld dword [ebp + 0x3c]
fstp dword [esp + 0x3c]
fld dword [ebp + 0x3c]
fchs
fstp dword [esp + 0x68]
fld dword [esp + 0x68]
fst dword [esp + 0x40]
fld dword [ebp + 0x38]
fstp dword [esp + 0x44]
fld dword [ebp + 0x44]
fstp dword [esp + 0x48]
fld dword [ebp + 0x40]
fstp dword [esp + 0x4c]
fxch st(1)
fst dword [esp + 0x50]
fxch st(1)
fst dword [esp + 0x54]
fxch st(2)
fst dword [esp + 0x58]
fld dword [ebp + 0x44]
fstp dword [esp + 0x5c]
fld dword [ebp + 0x44]
fstp dword [esp + 0x88]
fst dword [esp + 0x8c]
fld dword [ebp + 0x3c]
fstp dword [esp + 0x90]
fxch st(1)
fst dword [esp + 0x94]
fld dword [ebp + 0x40]
fstp dword [esp + 0x98]
fld dword [ebp + 0x44]
fstp dword [esp + 0x9c]
fstp dword [esp + 0xa0]
fxch st(1)
fst dword [esp + 0xa4]
fstp dword [esp + 0xa8]
fld dword [ebp + 0x38]
fstp dword [esp + 0xac]
fld dword [ebp + 0x44]
fstp dword [esp + 0xb0]
fstp dword [esp + 0xb4]
fld dword [ebp + 0x38]
fstp dword [esp + 0xb8]
fld dword [ebp + 0x3c]
fstp dword [esp + 0xbc]
fld dword [ebp + 0x40]
fstp dword [esp + 0xc0]
fld dword [ebp + 0x44]
fstp dword [esp + 0xc4]
call fcn.0057cc56
add esp, 0xc
jmp case.default.0x64758d
push 0x30
lea ecx, [ebp + 0x38]
push ecx
lea edx, [esp + 0xd0]
push edx
call fcn.0057bde2
add esp, 0xc
jmp case.default.0x64758d
fldz
lea esi, [ebp + 0x38]
push esi
fst dword [esp + 0x6c]
lea edi, [ebp + 0x44]
fst dword [esp + 0x70]
lea eax, [esp + 0xc0]
fstp dword [esp + 0x74]
push edi
push eax
call fcn.0057b7b1
mov edx, dword [esp + 0x74]
mov ecx, esp
mov dword [ecx], edx
mov edx, dword [esp + 0x78]
mov dword [ecx + 4], edx
mov edx, dword [esp + 0x7c]
mov dword [ecx + 8], edx
mov edx, dword [esi]
sub esp, 0xc
mov ecx, esp
mov dword [ecx], edx
mov edx, dword [esi + 4]
mov dword [ecx + 4], edx
mov edx, dword [esi + 8]
mov dword [ecx + 8], edx
mov edx, dword [edi]
sub esp, 0xc
mov ecx, esp
mov dword [ecx], edx
mov edx, dword [edi + 4]
mov dword [ecx + 4], edx
mov edx, dword [edi + 8]
mov dword [ecx + 8], edx
mov edx, dword [eax]
sub esp, 0xc
mov ecx, esp
mov dword [ecx], edx
mov edx, dword [eax + 4]
mov eax, dword [eax + 8]
mov dword [ecx + 4], edx
mov dword [ecx + 8], eax
lea ecx, [esp + 0x238]
push ecx
call fcn.0057faaf
fld dword [ebp + 0x50]
add esp, 0x30
lea edx, [esp + 0x24c]
fstp dword [esp]
mov esi, eax
mov ecx, 0x10
lea edi, [esp + 0x18c]
push edx
rep movsd dword es:[edi], dword [esi]
call fcn.0057a0cd
sub esp, 0x38
mov edi, esp
mov ecx, 0x10
lea esi, [esp + 0x1c8]
rep movsd dword es:[edi], dword [esi]
mov esi, eax
sub esp, 0x40
lea eax, [esp + 0x308]
mov edi, esp
mov ecx, 0x10
push eax
rep movsd dword es:[edi], dword [esi]
call fcn.0057be05
mov ecx, 0x10
mov esi, eax
lea edi, [esp + 0x14c]
add esp, 0x84
rep movsd dword es:[edi], dword [esi]
lea ecx, [esp + 0xc8]
push ecx
lea edx, [esp + 0x14c]
push edx
lea eax, [esp + 0x110]
push eax
call fcn.0057cc56
lea ecx, [esp + 0x1d4]
push ecx
lea edx, [esp + 0x118]
push edx
mov eax, edx
push eax
call fcn.0057cc56
lea ecx, [esp + 0x120]
push ecx
lea edx, [ebp + 0xa8]
push edx
call fcn.0057ede4
add esp, 0x20
cmp dword [ebx + 0x3c], 0
mov eax, dword [ebp + 0x13c]
mov edi, dword [ebp + 0xd8]
mov dword [esp + 0x64], eax
mov dword [esp + 0x5c], 0
jle 0x64811d
add edi, 0x14
mov dword [esp + 0x54], edi
mov edi, edi
mov ecx, dword [edi + 0x4c]
mov edx, dword [edi + 0x50]
mov eax, dword [ecx + 0xc]
test dword [edx], eax
je 0x6480e7
cmp byte [edi + 0x18], 0
mov ebx, dword [edi - 4]
mov byte [edi + 0x110], 0
je 0x6478c0
mov eax, dword [edi]
test eax, eax
jne 0x6478b5
lea eax, [ebp + 0xa8]
lea ecx, [edi + 0x1c]
jmp 0x648059
add eax, 0x68
lea ecx, [edi + 0x1c]
jmp 0x648059
cmp dword [ebp + 0x130], 0
jne 0x6478ee
mov eax, dword [edi]
test eax, eax
jne 0x6478e0
lea eax, [ebp + 0xa8]
lea ecx, [ebx + 0xbc]
jmp 0x648059
add eax, 0x68
lea ecx, [ebx + 0xbc]
jmp 0x648059
mov ecx, dword [esp + 0x64]
xor esi, esi
xor edx, edx
cmp dword [ebp + 0x134], esi
jle 0x647934
mov eax, dword [ebp + 0x134]
mov dword [esp + 0x60], eax
cmp byte [ecx], 0
je 0x647926
fldz
fcomp dword [ecx + 4]
fnstsw ax
test ah, 0x44
jnp 0x647926
mov eax, dword [ecx + 8]
add esi, 1
or edx, dword [eax + 8]
mov dword [esp + 0x78], ecx
add ecx, 0xc
sub dword [esp + 0x60], 1
jne 0x647908
test esi, esi
jne 0x647995
mov eax, dword [ebx + 0xb8]
test eax, eax
jne 0x647964
mov eax, dword [edi]
test eax, eax
lea esi, [ebp + 0xa8]
je 0x64794d
lea esi, [eax + 0x68]
add edi, 0x54
mov dword [esp + 0x10], edi
mov ecx, 0xc
rep movsd dword es:[edi], dword [esi]
mov edi, dword [esp + 0x54]
jmp 0x648065
cmp eax, 1
mov eax, dword [edi]
jne 0x6478cb
test eax, eax
jne 0x64797b
lea eax, [ebp + 0xa8]
jmp 0x64797e
add eax, 0x68
lea ecx, [edi + 0x54]
lea edx, [ebx + 0xbc]
mov dword [esp + 0x10], ecx
call fcn.006236c0
jmp 0x648065
cmp esi, 1
jne 0x647a30
test dl, 0x10
je 0x6479d0
mov eax, dword [edi]
test eax, eax
jne 0x6479be
mov ecx, dword [esp + 0x78]
mov ecx, dword [ecx + 8]
lea eax, [ebp + 0xa8]
add ecx, 0x44
jmp 0x648059
mov ecx, dword [esp + 0x78]
mov ecx, dword [ecx + 8]
add eax, 0x68
add ecx, 0x44
jmp 0x648059
mov eax, dword [esp + 0x78]
mov esi, dword [eax + 8]
lea edi, [esi + 0xc]
push edi
lea edi, [esi + 0x18]
push edi
mov edi, dword [esi + 0x24]
lea eax, [esi + 0x34]
lea ecx, [esi + 0x28]
push edx
lea esi, [esp + 0x20]
call fcn.00646f40
mov ecx, dword [esp + 0x60]
mov eax, dword [ecx]
add esp, 0xc
test eax, eax
jne 0x647a0d
mov eax, dword [esp + 0x2cc]
add eax, 0xa8
jmp 0x647a10
add eax, 0x68
lea edx, [ecx + 0x54]
lea ecx, [esp + 0x14]
mov dword [esp + 0x10], edx
call fcn.00623540
mov ebp, dword [esp + 0x2cc]
mov edi, dword [esp + 0x54]
jmp 0x648065
push 0x30
lea ecx, [esp + 0x18]
push 0
push ecx
call fcn.0057f8f2
add esp, 0xc
cmp dword [ebp + 0x134], 0
mov dword [esp + 0x60], 0
jle 0x647e96
mov ecx, dword [esp + 0x64]
fld1
add ecx, 4
mov dword [esp + 0x10], ecx
cmp byte [ecx - 4], 0
je 0x647e76
fldz
fcomp dword [ecx]
fnstsw ax
test ah, 0x44
jnp 0x647e76
mov ebp, dword [ecx + 4]
fld dword [ecx]
mov edx, dword [ebp + 8]
fstp dword [esp + 0x58]
test dl, 0x10
je 0x647c4a
fld st(0)
fld dword [esp + 0x58]
fucom st(1)
fnstsw ax
fstp st(1)
test ah, 0x44
jp 0x647b71
fstp st(0)
fld dword [ebp + 0x44]
fsub dword [ebx + 0xbc]
fadd dword [esp + 0x14]
fstp dword [esp + 0x14]
fld dword [ebp + 0x48]
fsub dword [ebx + 0xc0]
fadd dword [esp + 0x18]
fstp dword [esp + 0x18]
fld dword [ebp + 0x4c]
fsub dword [ebx + 0xc4]
fadd dword [esp + 0x1c]
fstp dword [esp + 0x1c]
fld dword [ebp + 0x50]
fsub dword [ebx + 0xc8]
fadd dword [esp + 0x20]
fstp dword [esp + 0x20]
fld dword [ebp + 0x54]
fsub dword [ebx + 0xcc]
fadd dword [esp + 0x24]
fstp dword [esp + 0x24]
fld dword [ebp + 0x58]
fsub dword [ebx + 0xd0]
fadd dword [esp + 0x28]
fstp dword [esp + 0x28]
fld dword [ebp + 0x5c]
fsub dword [ebx + 0xd4]
fadd dword [esp + 0x2c]
fstp dword [esp + 0x2c]
fld dword [ebp + 0x60]
fsub dword [ebx + 0xd8]
fadd dword [esp + 0x30]
fstp dword [esp + 0x30]
fld dword [ebp + 0x64]
fsub dword [ebx + 0xdc]
fadd dword [esp + 0x34]
fstp dword [esp + 0x34]
fld dword [ebp + 0x68]
fsub dword [ebx + 0xe0]
fadd dword [esp + 0x38]
fstp dword [esp + 0x38]
fld dword [ebp + 0x6c]
fsub dword [ebx + 0xe4]
fadd dword [esp + 0x3c]
fstp dword [esp + 0x3c]
fld dword [ebp + 0x70]
fsub dword [ebx + 0xe8]
jmp 0x647e63
fld dword [ebp + 0x44]
fsub dword [ebx + 0xbc]
fmul st(1)
fadd dword [esp + 0x14]
fstp dword [esp + 0x14]
fld dword [ebp + 0x48]
fsub dword [ebx + 0xc0]
fmul st(1)
fadd dword [esp + 0x18]
fstp dword [esp + 0x18]
fld dword [ebp + 0x4c]
fsub dword [ebx + 0xc4]
fmul st(1)
fadd dword [esp + 0x1c]
fstp dword [esp + 0x1c]
fld dword [ebp + 0x50]
fsub dword [ebx + 0xc8]
fmul st(1)
fadd dword [esp + 0x20]
fstp dword [esp + 0x20]
fld dword [ebp + 0x54]
fsub dword [ebx + 0xcc]
fmul st(1)
fadd dword [esp + 0x24]
fstp dword [esp + 0x24]
fld dword [ebp + 0x58]
fsub dword [ebx + 0xd0]
fmul st(1)
fadd dword [esp + 0x28]
fstp dword [esp + 0x28]
fld dword [ebp + 0x5c]
fsub dword [ebx + 0xd4]
fmul st(1)
fadd dword [esp + 0x2c]
fstp dword [esp + 0x2c]
fld dword [ebp + 0x60]
fsub dword [ebx + 0xd8]
fmul st(1)
fadd dword [esp + 0x30]
fstp dword [esp + 0x30]
fld dword [ebp + 0x64]
fsub dword [ebx + 0xdc]
fmul st(1)
fadd dword [esp + 0x34]
fstp dword [esp + 0x34]
fld dword [ebp + 0x68]
fsub dword [ebx + 0xe0]
fmul st(1)
fadd dword [esp + 0x38]
fstp dword [esp + 0x38]
fld dword [ebp + 0x6c]
fsub dword [ebx + 0xe4]
fmul st(1)
fadd dword [esp + 0x3c]
fstp dword [esp + 0x3c]
fld dword [ebp + 0x70]
jmp 0x647e5b
lea edi, [ebp + 0xc]
fstp st(0)
push edi
lea edi, [ebp + 0x18]
push edi
mov edi, dword [ebp + 0x24]
lea esi, [ebp + 0x74]
lea eax, [ebp + 0x34]
lea ecx, [ebp + 0x28]
push edx
call fcn.00646f40
fld1
fld st(0)
add esp, 0xc
fld dword [esp + 0x58]
fucom st(1)
fnstsw ax
fstp st(1)
test ah, 0x44
jp 0x647d69
fstp st(0)
mov ecx, dword [esp + 0x10]
fld dword [esi]
fsub dword [ebx + 0xbc]
fadd dword [esp + 0x14]
fstp dword [esp + 0x14]
fld dword [ebp + 0x78]
fsub dword [ebx + 0xc0]
fadd dword [esp + 0x18]
fstp dword [esp + 0x18]
fld dword [ebp + 0x7c]
fsub dword [ebx + 0xc4]
fadd dword [esp + 0x1c]
fstp dword [esp + 0x1c]
fld dword [ebp + 0x80]
fsub dword [ebx + 0xc8]
fadd dword [esp + 0x20]
fstp dword [esp + 0x20]
fld dword [ebp + 0x84]
fsub dword [ebx + 0xcc]
fadd dword [esp + 0x24]
fstp dword [esp + 0x24]
fld dword [ebp + 0x88]
fsub dword [ebx + 0xd0]
fadd dword [esp + 0x28]
fstp dword [esp + 0x28]
fld dword [ebp + 0x8c]
fsub dword [ebx + 0xd4]
fadd dword [esp + 0x2c]
fstp dword [esp + 0x2c]
fld dword [ebp + 0x90]
fsub dword [ebx + 0xd8]
fadd dword [esp + 0x30]
fstp dword [esp + 0x30]
fld dword [ebp + 0x94]
fsub dword [ebx + 0xdc]
fadd dword [esp + 0x34]
fstp dword [esp + 0x34]
fld dword [ebp + 0x98]
fsub dword [ebx + 0xe0]
fadd dword [esp + 0x38]
fstp dword [esp + 0x38]
fld dword [ebp + 0x9c]
fsub dword [ebx + 0xe4]
fadd dword [esp + 0x3c]
fstp dword [esp + 0x3c]
fld dword [ebp + 0xa0]
fsub dword [ebx + 0xe8]
jmp 0x647e63
fld dword [esi]
mov ecx, dword [esp + 0x10]
fsub dword [ebx + 0xbc]
fmul st(1)
fadd dword [esp + 0x14]
fstp dword [esp + 0x14]
fld dword [ebp + 0x78]
fsub dword [ebx + 0xc0]
fmul st(1)
fadd dword [esp + 0x18]
fstp dword [esp + 0x18]
fld dword [ebp + 0x7c]
fsub dword [ebx + 0xc4]
fmul st(1)
fadd dword [esp + 0x1c]
fstp dword [esp + 0x1c]
fld dword [ebp + 0x80]
fsub dword [ebx + 0xc8]
fmul st(1)
fadd dword [esp + 0x20]
fstp dword [esp + 0x20]
fld dword [ebp + 0x84]
fsub dword [ebx + 0xcc]
fmul st(1)
fadd dword [esp + 0x24]
fstp dword [esp + 0x24]
fld dword [ebp + 0x88]
fsub dword [ebx + 0xd0]
fmul st(1)
fadd dword [esp + 0x28]
fstp dword [esp + 0x28]
fld dword [ebp + 0x8c]
fsub dword [ebx + 0xd4]
fmul st(1)
fadd dword [esp + 0x2c]
fstp dword [esp + 0x2c]
fld dword [ebp + 0x90]
fsub dword [ebx + 0xd8]
fmul st(1)
fadd dword [esp + 0x30]
fstp dword [esp + 0x30]
fld dword [ebp + 0x94]
fsub dword [ebx + 0xdc]
fmul st(1)
fadd dword [esp + 0x34]
fstp dword [esp + 0x34]
fld dword [ebp + 0x98]
fsub dword [ebx + 0xe0]
fmul st(1)
fadd dword [esp + 0x38]
fstp dword [esp + 0x38]
fld dword [ebp + 0x9c]
fsub dword [ebx + 0xe4]
fmul st(1)
fadd dword [esp + 0x3c]
fstp dword [esp + 0x3c]
fld dword [ebp + 0xa0]
fsub dword [ebx + 0xe8]
fmulp st(1)
fadd dword [esp + 0x40]
mov edi, dword [esp + 0x54]
mov ebp, dword [esp + 0x2cc]
fstp dword [esp + 0x40]
mov eax, dword [esp + 0x60]
add eax, 1
add ecx, 0xc
cmp eax, dword [ebp + 0x134]
mov dword [esp + 0x60], eax
mov dword [esp + 0x10], ecx
jl 0x647a63
fstp st(0)
fld dword [ebx + 0xbc]
push ecx
fadd dword [esp + 0x18]
fstp dword [esp + 0x18]
fld dword [ebx + 0xc0]
fadd dword [esp + 0x1c]
fstp dword [esp + 0x1c]
fld dword [ebx + 0xc4]
fadd dword [esp + 0x20]
fstp dword [esp + 0x20]
fld dword [ebx + 0xc8]
fadd dword [esp + 0x24]
fstp dword [esp + 0x24]
fld dword [ebx + 0xcc]
fadd dword [esp + 0x28]
fstp dword [esp + 0x28]
fld dword [ebx + 0xd0]
fadd dword [esp + 0x2c]
fstp dword [esp + 0x2c]
fld dword [ebx + 0xd4]
fadd dword [esp + 0x30]
fstp dword [esp + 0x30]
fld dword [ebx + 0xd8]
fadd dword [esp + 0x34]
fstp dword [esp + 0x34]
fld dword [ebx + 0xdc]
fadd dword [esp + 0x38]
fstp dword [esp + 0x38]
fld dword [ebx + 0xe0]
fadd dword [esp + 0x3c]
fstp dword [esp + 0x3c]
fld dword [ebx + 0xe4]
fadd dword [esp + 0x40]
fstp dword [esp + 0x40]
fld dword [ebx + 0xe8]
fadd dword [esp + 0x44]
fstp dword [esp + 0x44]
fld dword [esp + 0x1c]
fld dword [esp + 0x18]
fld dword [esp + 0x20]
fld st(2)
fmulp st(3)
fld st(1)
fmulp st(2)
fxch st(2)
faddp st(1)
fld st(1)
fmulp st(2)
faddp st(1)
fstp dword [esp + 0x5c]
fld dword [esp + 0x5c]
fstp dword [esp]
call fcn.0057f9c9
fld1
fdivrp st(1)
fstp dword [esp + 0x6c]
fld dword [esp + 0x2c]
fld dword [esp + 0x28]
fld dword [esp + 0x30]
fld st(2)
fmulp st(3)
fld st(1)
fmulp st(2)
fxch st(2)
faddp st(1)
fld st(1)
fmulp st(2)
faddp st(1)
fstp dword [esp + 0x5c]
fld dword [esp + 0x5c]
fstp dword [esp]
call fcn.0057f9c9
fld1
fdivrp st(1)
fstp dword [esp + 0x70]
fld dword [esp + 0x3c]
fld dword [esp + 0x38]
fld dword [esp + 0x40]
fld st(2)
fmulp st(3)
fld st(1)
fmulp st(2)
fxch st(2)
faddp st(1)
fld st(1)
fmulp st(2)
faddp st(1)
fstp dword [esp + 0x5c]
fld dword [esp + 0x5c]
fstp dword [esp]
call fcn.0057f9c9
fld1
mov eax, dword [edi]
fdivrp st(1)
add esp, 4
test eax, eax
fstp dword [esp + 0x70]
fld dword [esp + 0x68]
fld st(0)
fmul dword [esp + 0x14]
fstp dword [esp + 0x14]
fld st(0)
fmul dword [esp + 0x18]
fstp dword [esp + 0x18]
fmul dword [esp + 0x1c]
fstp dword [esp + 0x1c]
fld dword [esp + 0x6c]
fld st(0)
fmul dword [esp + 0x24]
fstp dword [esp + 0x24]
fld st(0)
fmul dword [esp + 0x28]
fstp dword [esp + 0x28]
fmul dword [esp + 0x2c]
fstp dword [esp + 0x2c]
fld dword [esp + 0x70]
fld st(0)
fmul dword [esp + 0x34]
fstp dword [esp + 0x34]
fld st(0)
fmul dword [esp + 0x38]
fstp dword [esp + 0x38]
fmul dword [esp + 0x3c]
fstp dword [esp + 0x3c]
jne 0x648052
lea eax, [ebp + 0xa8]
jmp 0x648055
add eax, 0x68
lea ecx, [esp + 0x14]
lea edx, [edi + 0x54]
mov dword [esp + 0x10], edx
call fcn.00623540
mov byte [edi + 0x84], 0
mov ecx, dword [ebx + 0x160]
test ecx, ecx
je 0x6480e7
mov esi, dword [ebx + 0x164]
mov edx, dword [esp + 0x74]
mov eax, esi
sub eax, dword [edx + 0x9c]
mov dword [esp + 0x60], 0
sar eax, 6
test ecx, ecx
jle 0x6480e7
lea edi, [eax + eax*2]
shl edi, 4
lea ecx, [ecx]
cmp dword [esi + 0x30], 0
mov eax, dword [esp + 0x10]
jne 0x6480bb
mov edx, dword [ebp + 0xe8]
add edx, edi
mov ecx, esi
call fcn.00623540
jmp 0x6480ca
mov ecx, dword [ebp + 0xe8]
add ecx, edi
mov edx, esi
call fcn.006236c0
mov eax, dword [esp + 0x60]
add eax, 1
add esi, 0x40
add edi, 0x30
cmp eax, dword [ebx + 0x160]
mov dword [esp + 0x60], eax
jl 0x6480a0
mov edi, dword [esp + 0x54]
mov eax, dword [ebp + 0x134]
mov edx, dword [esp + 0x64]
mov ecx, dword [esp + 0x5c]
lea eax, [eax + eax*2]
lea eax, [edx + eax*4]
mov edx, dword [esp + 0x74]
add ecx, 1
add edi, 0x1e0
cmp ecx, dword [edx + 0x3c]
mov dword [esp + 0x5c], ecx
mov dword [esp + 0x54], edi
mov dword [esp + 0x64], eax
jl 0x647880
mov eax, dword [ebp + 0x24]
mov ecx, dword [ebp + 0x1c]
push eax
push 0
push ecx
call fcn.0057f8f2
add esp, 0xc
mov byte [ebp + 0xa5], 1
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x2b8
ret