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

Disassembly:
sub esp, 0x8bc
mov eax, dword [esp + 0x8d0]
mov dword [esp + 0x20], ecx
mov ecx, eax
imul ecx, eax
mov dword [esp + 0x18], ecx
mov eax, dword [esp + 0x8d8]
dec eax
fild dword [esp + 0x18]
fsqrt
fstp dword [esp + 4]
jne 0x4bb6c7
fild dword [esp + 0x8d4]
fmul dword [0x5f0374]
call fcn.00591008
mov dword [esp + 0x8d4], eax
mov edx, dword [esp + 0x8e0]
push ebx
push ebp
mov eax, 3
mov ecx, 2
push esi
push edi
mov dword [esp + 0x60], ecx
mov dword [esp + 0x64], ecx
mov dword [esp + 0x68], ecx
mov dword [esp + 0x7c], ecx
xor esi, esi
mov ebx, 1
mov dword [esp + 0x6c], eax
mov dword [esp + 0x70], eax
mov dword [esp + 0x74], eax
mov dword [esp + 0x78], eax
mov dword [esp + 0x80], eax
xor eax, eax
mov ecx, 0x11
lea edi, [esp + 0x88]
mov dword [esp + 0x4c], esi
mov dword [esp + 0x50], esi
mov dword [esp + 0x54], esi
mov dword [esp + 0x58], ebx
mov dword [esp + 0x5c], ebx
mov dword [esp + 0x84], ebx
rep stosd dword es:[edi], eax
push edx
mov ecx, 0x71d4b4
call fcn.004baac0
cmp eax, esi
mov dword [esp + 0x18], eax
jne 0x4bb955
xor edi, edi
mov dword [esp + 0x10], esi
mov dword [esp + 0x2c], edi
lea ebp, [esp + 0x4d0]
lea ecx, [ecx]
cmp edi, 0xffffffff
mov eax, dword [esp + 0x30]
mov eax, dword [eax + 0xc]
jne 0x4bb78f
test eax, eax
je 0x4bb92d
mov esi, dword [eax + 8]
cmp dword [esi + 0x2c], ebx
jne 0x4bb783
mov ecx, dword [esi + 0x50]
test ecx, ecx
jne 0x4bb7b0
mov eax, dword [eax + 4]
test eax, eax
jne 0x4bb774
jmp 0x4bb92d
test eax, eax
je 0x4bb92d
mov esi, dword [eax + 8]
cmp dword [esi + 0x2c], ebx
jne 0x4bb7a4
cmp dword [esi + 0x38], edi
je 0x4bb7b0
mov eax, dword [eax + 4]
test eax, eax
jne 0x4bb797
jmp 0x4bb92d
mov eax, dword [esi + 0x3f0]
test eax, eax
jne 0x4bb92d
mov eax, dword [esi + 0x3fc]
test eax, eax
jne 0x4bb92d
lea ecx, [esi + 0x94]
call fcn.00417b50
fstp dword [esp + 0x38]
lea ecx, [esi + 0xa4]
call fcn.00417b50
mov eax, dword [esi + 0xd0]
lea ecx, [eax + eax*2]
shl ecx, 5
mov eax, dword [ecx + 0x8b2e48]
cdq
sub eax, edx
sar eax, 1
mov dword [esp + 0x28], eax
fisub dword [esp + 0x28]
fisubr dword [esp + 0x8dc]
fild dword [esp + 0x8d8]
fsub dword [esp + 0x38]
fld st(0)
fmul st(1)
fld st(2)
fmul st(3)
faddp st(1)
fsqrt
fstp st(2)
fstp st(0)
fst dword [esp + 0x34]
fcomp dword [esp + 0x14]
fnstsw ax
test ah, 5
jp 0x4bb92d
xor edi, edi
mov dword [esp + 0x24], edi
mov dword [esp + 0x18], edi
lea ebx, [esi + 0xab70]
lea ebx, [ebx]
mov eax, dword [edi + ebx + 8]
test eax, eax
je 0x4bb873
mov eax, dword [edi + ebx + 0x2c]
test eax, eax
je 0x4bb873
mov eax, dword [esp + 0x18]
lea edx, [esp + 0x24]
push edx
push 4
push eax
mov ecx, ebx
call fcn.004de620
mov edx, dword [esp + 0x18]
inc edx
add edi, 0xc
cmp edi, 0x24
mov dword [esp + 0x18], edx
jl 0x4bb850
mov al, byte [esp + 0x8ec]
test al, al
je 0x4bb898
mov eax, dword [esp + 0x8e4]
jmp 0x4bb8b0
fld dword [esp + 0x14]
fsub dword [esp + 0x34]
fdiv dword [esp + 0x14]
fimul dword [esp + 0x8e4]
call fcn.00591008
mov edi, dword [esi + 0x558]
imul eax, eax, 0x64
cdq
idiv edi
mov edx, dword [esp + 0x24]
add edi, edx
mov ecx, eax
imul eax, eax, 0x64
cdq
idiv edi
mov edx, dword [esp + 0x18]
mov edi, dword [esp + 0x8f8]
sub eax, ecx
cmp edi, edx
jne 0x4bb8e2
add ecx, dword [esp + 0x8fc]
mov edi, dword [esp + 0x2c]
mov dword [ebp - 4], 2
mov dword [ebp], 0
mov edx, dword [esi + 0xdc]
mov dword [ebp + 0xc], ecx
xor ecx, ecx
test eax, eax
setge cl
mov dword [ebp + 4], edx
mov edx, dword [esp + 0x8d4]
mov dword [ebp + 8], edx
cdq
xor eax, edx
mov dword [ebp + 0x10], ecx
mov ecx, dword [esp + 0x10]
sub eax, edx
inc ecx
mov dword [ebp + 0x14], eax
mov dword [esp + 0x10], ecx
add ebp, 0x1c
mov ebx, 1
inc edi
cmp edi, 0x32
mov dword [esp + 0x2c], edi
jl 0x4bb760
mov eax, dword [esp + 0x10]
test eax, eax
je 0x4bc0cf
lea edx, [esp + 0x4cc]
push edx
push eax
jmp 0x4bc0c5
mov ecx, dword [esp + 0x8d0]
imul ecx, ecx, 0xa8
lea eax, [ecx + eax + 0x660]
cmp dword [eax], ebx
mov dword [esp + 0x3c], eax
jne 0x4bb985
fld dword [0x5f0398]
fadd dword [0x5b7bb8]
fmul dword [esp + 0x14]
fstp dword [esp + 0x14]
lea edx, [esp + 0xd0]
mov dword [esp + 0x10], esi
mov dword [esp + 0x2c], esi
mov dword [esp + 0x28], edx
jmp 0x4bb9a0
cmp dword [esp + 0x2c], 0xffffffff
mov eax, dword [esp + 0x30]
mov eax, dword [eax + 0xc]
jne 0x4bb9db
test eax, eax
je 0x4bbee0
mov ecx, 1
jmp 0x4bb9c0
mov ebx, dword [eax + 8]
cmp dword [ebx + 0x2c], ecx
jne 0x4bb9cf
mov edx, dword [ebx + 0x50]
test edx, edx
jne 0x4bba01
mov eax, dword [eax + 4]
test eax, eax
jne 0x4bb9c0
jmp 0x4bbee0
test eax, eax
je 0x4bbee0
mov ebx, dword [eax + 8]
cmp dword [ebx + 0x2c], 1
jne 0x4bb9f5
mov ecx, dword [esp + 0x2c]
cmp dword [ebx + 0x38], ecx
je 0x4bba01
mov eax, dword [eax + 4]
test eax, eax
jne 0x4bb9e3
jmp 0x4bbee0
mov eax, dword [ebx + 0x3f0]
test eax, eax
jne 0x4bbee0
mov eax, dword [ebx + 0x3fc]
test eax, eax
jne 0x4bbee0
mov esi, dword [esp + 0x18]
mov eax, dword [esi + 0x1b4]
xor edi, edi
add esi, 0xab70
xor ebp, ebp
cmp eax, edi
mov dword [esp + 0x1c], edi
mov dword [esp + 0x24], edi
jne 0x4bbaa0
lea ecx, [ecx]
mov eax, dword [esi + ebp + 8]
test eax, eax
je 0x4bba5f
mov eax, dword [esi + ebp + 0x2c]
test eax, eax
je 0x4bba5f
lea edx, [esp + 0x1c]
push edx
push 0
push edi
mov ecx, esi
call fcn.004de620
add ebp, 0xc
inc edi
cmp ebp, 0x24
jl 0x4bba40
xor edi, edi
lea esi, [ebx + 0xab70]
xor ebp, ebp
mov eax, dword [esi + ebp + 8]
test eax, eax
je 0x4bba91
mov eax, dword [esi + ebp + 0x2c]
test eax, eax
je 0x4bba91
lea eax, [esp + 0x24]
push eax
push 4
push edi
mov ecx, esi
call fcn.004de620
add ebp, 0xc
inc edi
cmp ebp, 0x24
jl 0x4bba72
jmp 0x4bbafa
mov eax, dword [esi + ebp + 8]
test eax, eax
je 0x4bbabf
mov eax, dword [esi + ebp + 0x2c]
test eax, eax
je 0x4bbabf
lea ecx, [esp + 0x1c]
push ecx
push 2
push edi
mov ecx, esi
call fcn.004de620
add ebp, 0xc
inc edi
cmp ebp, 0x24
jl 0x4bbaa0
xor edi, edi
lea esi, [ebx + 0xab70]
xor ebp, ebp
mov eax, dword [esi + ebp + 8]
test eax, eax
je 0x4bbaf1
mov eax, dword [esi + ebp + 0x2c]
test eax, eax
je 0x4bbaf1
lea edx, [esp + 0x24]
push edx
push 4
push edi
mov ecx, esi
call fcn.004de620
add ebp, 0xc
inc edi
cmp ebp, 0x24
jl 0x4bbad2
lea esi, [ebx + 0x94]
mov ecx, esi
call fcn.00415bb0
test al, al
jne 0x4bbb15
mov dword [0], 1
mov al, byte [esi + 0xc]
mov cl, byte [esi + 4]
mov dl, byte [esi + 5]
xor cl, al
mov byte [esp + 0x40], cl
mov cl, byte [esi + 6]
xor dl, al
mov byte [esp + 0x41], dl
mov dl, byte [esi + 7]
xor cl, al
mov byte [esp + 0x42], cl
xor dl, al
lea esi, [ebx + 0xa4]
mov ecx, esi
mov byte [esp + 0x43], dl
call fcn.00415bb0
test al, al
jne 0x4bbb57
mov dword [0], 1
mov al, byte [esi + 0xc]
mov dl, byte [esi + 5]
mov cl, byte [esi + 4]
mov ebp, dword [ebx + 0xd0]
xor cl, al
xor dl, al
mov byte [esp + 0x45], dl
mov dl, byte [esi + 7]
xor dl, al
mov byte [esp + 0x44], cl
mov cl, byte [esi + 6]
xor cl, al
lea eax, [ebp + ebp*2]
shl eax, 5
mov eax, dword [eax + 0x8b2e48]
mov byte [esp + 0x47], dl
cdq
sub eax, edx
sar eax, 1
mov dword [esp + 0x38], eax
mov byte [esp + 0x46], cl
fild dword [esp + 0x38]
fsubr dword [esp + 0x44]
fisubr dword [esp + 0x8dc]
fild dword [esp + 0x8d8]
fsub dword [esp + 0x40]
fld st(0)
fmul st(1)
fld st(2)
fmul st(3)
faddp st(1)
fsqrt
fstp st(2)
fstp st(0)
fcom dword [esp + 0x14]
fnstsw ax
test ah, 5
jp 0x4bbede
fld dword [esp + 0x14]
mov edi, dword [ebx + 0x558]
fsub st(1)
fdiv dword [esp + 0x14]
fstp dword [esp + 0x48]
fstp st(0)
fild dword [esp + 0x8e4]
fstp dword [esp + 0x34]
fld dword [esp + 0x48]
fmul dword [esp + 0x34]
call fcn.00591008
imul eax, eax, 0x64
cdq
idiv edi
mov ecx, dword [esp + 0x1c]
mov edx, dword [esp + 0x8e4]
add ecx, edx
mov dword [esp + 0x1c], ecx
fild dword [esp + 0x1c]
fstp dword [esp + 0x1c]
fld dword [esp + 0x48]
fmul dword [esp + 0x1c]
mov esi, eax
mov dword [esp + 0x38], esi
call fcn.00591008
imul eax, eax, 0x64
mov ecx, dword [esp + 0x24]
cdq
add edi, ecx
idiv edi
mov edx, dword [esp + 0x3c]
mov edi, eax
mov eax, dword [edx]
sub eax, 0
mov dword [esp + 0x24], edi
je 0x4bbcde
dec eax
je 0x4bbcac
dec eax
jne 0x4bbd20
mov eax, dword [ebx + 0x57c]
sub eax, 2
jne 0x4bbd20
fld dword [0x5b7bb8]
fsub dword [0x5f03a8]
fld dword [esp + 0x34]
fmul st(1)
fmul dword [esp + 0x48]
fld dword [esp + 0x34]
fmul dword [0x5f03a8]
faddp st(1)
call fcn.00591008
fmul dword [esp + 0x1c]
mov esi, eax
fmul dword [esp + 0x48]
fld dword [esp + 0x1c]
fmul dword [0x5f03a8]
faddp st(1)
jmp 0x4bbd19
mov eax, dword [ebx + 0x57c]
test eax, eax
jne 0x4bbd20
fld dword [0x5f039c]
fadd dword [0x5b7bb8]
fild dword [esp + 0x38]
fmul st(1)
call fcn.00591008
fild dword [esp + 0x24]
mov esi, eax
fmul st(1)
call fcn.00591008
fstp st(0)
jmp 0x4bbd1e
mov eax, dword [ebx + 0x57c]
dec eax
jne 0x4bbd20
mov al, byte [esp + 0x8ec]
test al, al
je 0x4bbd09
fld dword [0x5f03a0]
fadd dword [0x5b7bb8]
fimul dword [esp + 0x38]
call fcn.00591008
mov esi, eax
fld dword [0x5f03a0]
fadd dword [0x5b7bb8]
fimul dword [esp + 0x24]
call fcn.00591008
mov edi, eax
cmp dword [esp + 0x18], ebx
jne 0x4bbd52
imul esi, esi, 7
imul edi, edi, 7
mov eax, 0x66666667
imul esi
sar edx, 2
mov eax, edx
shr eax, 0x1f
add eax, edx
mov esi, eax
mov eax, 0x66666667
imul edi
sar edx, 2
mov ecx, edx
shr ecx, 0x1f
add ecx, edx
mov edi, ecx
mov edx, dword [esp + 0x18]
mov ecx, dword [edx + 0xd0]
mov eax, dword [esp + ecx*4 + 0x4c]
cmp eax, dword [esp + ebp*4 + 0x4c]
jne 0x4bbd92
shl esi, 3
mov eax, 0x66666667
imul esi
sar edx, 2
mov eax, edx
shr eax, 0x1f
add eax, edx
mov esi, eax
shl edi, 3
mov eax, 0x66666667
imul edi
sar edx, 2
mov eax, edx
shr eax, 0x1f
add eax, edx
mov edi, eax
cmp ecx, 7
jne 0x4bbe1c
mov ecx, 0x6f96b4
call fcn.00407310
test al, al
jne 0x4bbdb3
mov dword [0], 1
mov al, byte [0x6f96c0]
mov cl, byte [0x6f96b8]
mov dl, byte [0x6f96b9]
xor cl, al
xor dl, al
mov byte [esp + 0x20], cl
mov cl, byte [0x6f96ba]
mov byte [esp + 0x21], dl
mov dl, byte [0x6f96bb]
xor cl, al
xor dl, al
mov byte [esp + 0x22], cl
mov byte [esp + 0x23], dl
mov eax, dword [esp + 0x20]
test eax, eax
je 0x4bbe1c
imul esi, esi, 0xd
imul edi, edi, 0xd
mov eax, 0x66666667
imul esi
sar edx, 2
mov eax, edx
shr eax, 0x1f
add eax, edx
mov esi, eax
mov eax, 0x66666667
imul edi
sar edx, 2
mov ecx, edx
shr ecx, 0x1f
add ecx, edx
mov edi, ecx
mov edx, dword [esp + 0x18]
cmp dword [edx + 0xd0], 6
mov ebp, edx
jne 0x4bbe77
mov ecx, dword [ebp + 0x534]
mov eax, 0x66666667
imul ecx
mov ecx, dword [ebp + 0x120]
sar edx, 1
mov eax, edx
shr eax, 0x1f
add eax, edx
cmp eax, ecx
jle 0x4bbe77
imul esi, esi, 0xd
imul edi, edi, 0xd
mov eax, 0x66666667
imul esi
sar edx, 2
mov ecx, edx
shr ecx, 0x1f
add ecx, edx
mov eax, 0x66666667
imul edi
sar edx, 2
mov eax, edx
shr eax, 0x1f
add eax, edx
mov esi, ecx
mov edi, eax
mov ecx, dword [esp + 0x2c]
mov eax, dword [esp + 0x8f8]
sub edi, esi
cmp eax, ecx
jne 0x4bbe8f
add esi, dword [esp + 0x8fc]
mov ecx, dword [esp + 0x28]
mov dword [ecx - 4], 2
mov edx, dword [ebp + 0xdc]
mov dword [ecx], edx
mov eax, dword [ebx + 0xdc]
mov edx, dword [esp + 0x8d4]
mov dword [ecx + 4], eax
xor eax, eax
test edi, edi
setge al
mov dword [ecx + 8], edx
mov dword [ecx + 0xc], esi
mov dword [ecx + 0x10], eax
mov eax, edi
cdq
xor eax, edx
sub eax, edx
mov edx, dword [esp + 0x10]
inc edx
mov dword [ecx + 0x14], eax
add ecx, 0x1c
mov dword [esp + 0x10], edx
mov dword [esp + 0x28], ecx
jmp 0x4bbee0
fstp st(0)
mov eax, dword [esp + 0x2c]
inc eax
cmp eax, 0x32
mov dword [esp + 0x2c], eax
jl 0x4bb9a0
mov esi, dword [esp + 0x30]
lea ecx, [esi + 4]
call fcn.00413bd0
fld dword [esp + 0x14]
test eax, eax
fadd st(0), st(0)
mov ecx, dword [esi + 0xc]
mov dword [esp + 0x30], ecx
fstp dword [esp + 0x14]
jle 0x4bc0b2
mov ecx, dword [esp + 0x10]
imul ecx, ecx, 0x1c
lea edx, [esp + ecx + 0xdc]
mov dword [esp + 0x20], edx
lea ebx, [esp + ecx + 0xd8]
lea ebp, [esp + ecx + 0xd4]
lea edi, [esp + ecx + 0xd0]
lea esi, [esp + ecx + 0xcc]
mov dword [esp + 0x28], eax
lea esp, [esp]
mov eax, dword [esp + 0x30]
mov ecx, dword [eax + 8]
mov eax, dword [ecx + 0x2c]
sub eax, 6
je 0x4bbfe7
sub eax, 2
jne 0x4bc09d
fild dword [ecx + 0xc4]
fild dword [ecx + 0xd0]
fisubr dword [esp + 0x8dc]
fild dword [esp + 0x8d8]
fsub st(2)
fld st(0)
fmul st(1)
fld st(2)
fmul st(3)
faddp st(1)
fsqrt
fstp st(3)
fstp st(0)
fstp st(0)
fcomp dword [esp + 0x14]
fnstsw ax
test ah, 5
jp 0x4bc09d
mov ecx, dword [esp + 0x18]
mov eax, dword [esp + 0x20]
mov dword [esi], 9
mov edx, dword [ecx + 0xdc]
mov dword [edi], edx
mov edx, dword [esp + 0x10]
mov dword [ebp], 0
inc edx
add esi, 0x1c
add edi, 0x1c
add ebp, 0x1c
add ebx, 0x1c
add eax, 0x1c
mov dword [esp + 0x10], edx
mov dword [esp + 0x20], eax
jmp 0x4bc09d
mov eax, dword [ecx + 0xc0]
fild dword [ecx + 0xcc]
cdq
sub eax, edx
mov edx, dword [ecx + 0xd8]
sar eax, 1
sub edx, eax
mov dword [esp + 0x3c], edx
fild dword [esp + 0x3c]
fisubr dword [esp + 0x8dc]
fild dword [esp + 0x8d8]
fsub st(2)
fld st(0)
fmul st(1)
fld st(2)
fmul st(3)
faddp st(1)
fsqrt
fstp st(3)
fstp st(0)
fstp st(0)
fcom dword [esp + 0x14]
fnstsw ax
test ah, 5
jp 0x4bc09b
fld dword [esp + 0x14]
mov eax, dword [ecx + 0x1b8]
fsub st(1)
mov dword [esi], 7
mov dword [edi], 0
mov ecx, dword [ecx + 0x160]
fdiv dword [esp + 0x14]
mov dword [esp + 0x3c], eax
mov dword [ebp], ecx
mov dword [ebx], 0
fimul dword [esp + 0x8e4]
call fcn.00591008
imul eax, eax, 0x64
cdq
idiv dword [esp + 0x3c]
mov ecx, dword [esp + 0x20]
mov edx, dword [esp + 0x10]
inc edx
add esi, 0x1c
add edi, 0x1c
add ebp, 0x1c
add ebx, 0x1c
add ecx, 0x1c
mov dword [esp + 0x10], edx
mov dword [esp + 0x20], ecx
mov dword [ecx - 0x1c], eax
fstp st(0)
mov edx, dword [esp + 0x30]
mov eax, dword [edx + 4]
mov dword [esp + 0x30], eax
dec dword [esp + 0x28]
jne 0x4bbf50
mov eax, dword [esp + 0x10]
test eax, eax
je 0x4bc0cf
lea ecx, [esp + 0xcc]
push ecx
mov edx, eax
push edx
mov ecx, 0x6fece8
call fcn.00490fb0
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x8bc
ret 0x30