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

Disassembly:
sub esp, 0x54
push ebp
push esi
mov esi, eax
mov eax, dword [esp + 0x64]
mov ecx, 0x100
push edi
cmp dword [eax + 0x694], ecx
jne 0x4bb185
cmp dword [eax + 0x698], ecx
je 0x4bb4b1
mov eax, dword [ebx + 0x2c8]
mov ecx, dword [eax + 4]
mov edx, dword [ecx + 0x18]
add eax, 4
push esi
push eax
call edx
mov ecx, dword [esp + 0x6c]
mov edx, dword [esp + 0x88]
mov ebp, eax
mov eax, dword [ecx + 0x38]
mov ecx, dword [ecx + 0x4c]
fld dword [eax + edx*4]
dec ecx
fstp qword [esp + 0x28]
xor edi, edi
xor eax, eax
mov dword [esp + 0x18], ebp
cmp dword [esp + 0x70], ecx
jne 0x4bb1e0
mov eax, dword [ebx + 0x2c8]
mov edx, dword [eax + 4]
add eax, 4
push esi
push eax
mov eax, dword [edx + 0x54]
call eax
push eax
lea esi, [ebx + 0x250]
call fcn.004a4440
mov ecx, dword [esp + 0x88]
mov esi, dword [esp + 0x8c]
add ecx, ebp
xor edx, edx
add esi, ebp
cmp eax, edi
jge 0x4bb1fa
xor eax, eax
push eax
push esi
push edx
push ecx
lea eax, [esp + 0x60]
call fcn.00483fe0
mov edx, dword [ebx + 0x260]
sub edx, dword [ebx + 0x25c]
mov dword [esp + 0xc], edi
sar edx, 4
test edx, edx
jbe 0x4bb4b1
mov dword [esp + 0x10], edi
cmp edi, dword [ebx + 0x290]
jne 0x4bb23e
mov eax, dword [esp + 0x68]
mov ecx, dword [eax + 0x694]
mov dword [esp + 0x14], ecx
jmp 0x4bb24c
mov edx, dword [esp + 0x68]
mov eax, dword [edx + 0x698]
mov dword [esp + 0x14], eax
cmp dword [esp + 0x14], 0x100
je 0x4bb490
mov ecx, dword [ebx + 0x260]
sub ecx, dword [ebx + 0x25c]
sar ecx, 4
cmp edi, ecx
jb 0x4bb272
call fcn.00501daa
mov edx, dword [esp + 0x50]
mov ecx, dword [esp + 0x54]
sub esp, 0x10
mov eax, esp
mov dword [eax], edx
mov edx, dword [esp + 0x68]
mov dword [eax + 4], ecx
mov ecx, dword [esp + 0x6c]
mov dword [eax + 8], edx
mov dword [eax + 0xc], ecx
mov eax, dword [ebx + 0x25c]
add eax, dword [esp + 0x20]
lea esi, [esp + 0x50]
call fcn.004a35d0
mov ebp, dword [esp + 0x40]
mov esi, dword [esp + 0x48]
cmp ebp, esi
jne 0x4bb2bf
mov edx, dword [esp + 0x44]
cmp edx, dword [esp + 0x4c]
je 0x4bb490
mov ecx, dword [esp + 0x6c]
call fcn.004ac790
mov edi, eax
mov eax, dword [esp + 0x68]
mov ecx, dword [eax + 0x48]
sub ecx, dword [eax + 0x44]
mov eax, 0x38e38e39
imul ecx
sar edx, 4
mov eax, edx
shr eax, 0x1f
add eax, edx
cmp edi, eax
jb 0x4bb2ee
call fcn.00501daa
mov edx, dword [esp + 0x68]
mov eax, dword [edx + 0x44]
mov edx, dword [esp + 0x7c]
lea ecx, [edi + edi*8]
fld dword [eax + ecx*8 + 0x24]
mov ecx, dword [esp + 0x78]
mov eax, dword [esp + 0x80]
fstp dword [esp + 0x24]
fild dword [esp + 0x74]
mov edi, dword [esp + 0x6c]
mov dword [esp + 0x30], ecx
mov ecx, dword [esp + 0x84]
fstp dword [esp + 0x1c]
mov dword [esp + 0x3c], ecx
fld qword [esp + 0x28]
mov dword [esp + 0x34], edx
mov edx, dword [esp + 0x18]
fstp dword [esp + 0x20]
mov dword [esp + 0x38], eax
mov eax, dword [edi + 0x38]
mov ecx, ebp
sub ecx, edx
fld dword [eax + ecx*4]
sub esi, edx
fld dword [esp + 0x1c]
add edi, 0x50
fld st(0)
faddp st(2)
fld dword [esp + 0x20]
fld st(0)
fsubp st(3)
fild dword [esp + 0x44]
fld dword [esp + 0x24]
fld st(0)
fmulp st(2)
fxch st(4)
faddp st(1)
fstp dword [esp + 0x30]
fld dword [eax + esi*4]
faddp st(2)
fsubp st(1)
fild dword [esp + 0x4c]
fmulp st(2)
faddp st(1)
fstp dword [esp + 0x38]
fldz
fcomp dword [edi]
fnstsw ax
test ah, 0x44
jnp 0x4bb3e5
mov eax, dword [esp + 0x88]
test eax, eax
je 0x4bb3e5
cmp ecx, eax
jne 0x4bb3e5
mov edx, dword [ebx + 0x260]
sub edx, dword [ebx + 0x25c]
sar edx, 4
cmp dword [esp + 0xc], edx
jb 0x4bb3b8
call fcn.00501daa
mov eax, dword [ebx + 0x25c]
add eax, dword [esp + 0x10]
lea esi, [ebp - 1]
call fcn.004a3590
test al, al
je 0x4bb3e5
fld dword [esp + 0x30]
fld dword [edi]
call fcn.00505040
mov dword [esp + 0x24], eax
fisub dword [esp + 0x24]
fstp dword [esp + 0x30]
fld dword [esp + 0x30]
fld dword [esp + 0x78]
fcom st(1)
fnstsw ax
fstp st(1)
test ah, 5
jnp 0x4bb3fc
fst dword [esp + 0x30]
fld dword [esp + 0x38]
fld dword [esp + 0x80]
fcom st(1)
fnstsw ax
fstp st(1)
test ah, 0x41
je 0x4bb418
fstp dword [esp + 0x38]
jmp 0x4bb41a
fstp st(0)
fld dword [esp + 0x38]
fcompp
fnstsw ax
test ah, 0x41
jne 0x4bb48c
mov eax, dword [esp + 0xc]
cmp eax, dword [ebx + 0x290]
mov eax, dword [esp + 0x68]
jne 0x4bb44e
cmp byte [ebx + 0x29c], 0
je 0x4bb447
add eax, 0x680
jmp 0x4bb453
add eax, 0x690
jmp 0x4bb453
add eax, 0x68c
mov eax, dword [eax]
mov edx, dword [esp + 0x14]
mov ecx, dword [esp + 0x64]
mov esi, dword [ecx]
push 0
push edx
push eax
push edx
mov edx, dword [esp + 0x40]
push eax
push 0
sub esp, 0x10
mov eax, esp
mov dword [eax], edx
mov edx, dword [esp + 0x5c]
mov dword [eax + 4], edx
mov edx, dword [esp + 0x60]
mov dword [eax + 8], edx
mov edx, dword [esp + 0x64]
mov dword [eax + 0xc], edx
mov eax, dword [esi + 0x40]
call eax
mov edi, dword [esp + 0xc]
mov ecx, dword [ebx + 0x260]
sub ecx, dword [ebx + 0x25c]
add dword [esp + 0x10], 0x10
inc edi
sar ecx, 4
mov dword [esp + 0xc], edi
cmp edi, ecx
jb 0x4bb226
pop edi
pop esi
pop ebp
add esp, 0x54
ret