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

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff0
sub esp, 0xf4
push ebx
push esi
push edi
mov edi, dword [ebp + 8]
mov esi, ecx
lea eax, [esp + 0x3c]
push eax
mov ecx, edi
mov dword [esp + 0x28], esi
call fcn.0041a700
lea ecx, [esp + 0x18]
push ecx
mov ecx, edi
mov ebx, eax
call fcn.0041a340
mov edx, dword [ebx]
mov eax, dword [eax]
push edx
push eax
lea ecx, [esp + 0x28]
push ecx
mov ecx, edi
call fcn.00417700
lea edx, [esp + 0x3c]
add esi, 0x54
push edx
mov ecx, esi
call fcn.0041a700
mov edi, eax
lea eax, [esp + 0x18]
push eax
mov ecx, esi
call fcn.0041a340
mov ecx, dword [edi]
mov edx, dword [eax]
push ecx
push edx
lea eax, [esp + 0x28]
push eax
mov ecx, esi
call fcn.00417700
mov ebx, dword [ebp + 0xc]
mov edx, dword [ebx]
fld dword [ebx + 0x18]
mov eax, dword [ebx + 0x20]
fstp dword [esp + 0x80]
mov edi, dword [ebx + 0x1c]
fld dword [ebx + 0x18]
mov dword [esp + 0x68], edx
fstp dword [esp + 0x58]
mov edx, dword [ebx + 4]
mov dword [esp + 0x6c], edx
mov edx, dword [ebx + 8]
mov dword [esp + 0x70], edx
mov edx, dword [ebx + 0xc]
mov dword [esp + 0x74], edx
mov edx, dword [ebx + 0x10]
mov dword [esp + 0x78], edx
mov edx, dword [ebx + 0x14]
mov ecx, eax
mov dword [esp + 0x1c], ecx
mov dword [esp + 0x88], ecx
mov ecx, dword [ebx]
mov dword [esp + 0x7c], edx
mov edx, dword [ebx + 4]
mov dword [esp + 0x40], ecx
mov ecx, dword [ebx + 8]
mov dword [esp + 0x44], edx
mov edx, dword [ebx + 0xc]
mov dword [esp + 0x48], ecx
mov ecx, dword [ebx + 0x10]
or edi, 4
mov dword [esp + 0x4c], edx
mov edx, dword [ebx + 0x14]
mov dword [esp + 0x50], ecx
mov dword [esp + 0x38], eax
mov dword [esp + 0x84], edi
mov dword [esp + 0x54], edx
mov dword [esp + 0x5c], edi
mov dword [esp + 0x60], eax
mov ecx, eax
fld dword [esp + 0x80]
and ecx, 0xd
mov dword [esp + 0x34], ecx
fst dword [esp + 0x2c]
mov ecx, eax
and ecx, 4
add ecx, ecx
add ecx, ecx
and eax, 8
or ecx, eax
add ecx, ecx
add ecx, ecx
add ecx, ecx
or ecx, 4
mov dword [esp + 0x64], ecx
mov dword [esp + 0x28], 0
mov dword [esp + 0x30], 0xffffffff
jmp 0x4b6e8a
fld dword [esp + 0x80]
test byte [ebx + 0x20], 2
je 0x4b6fd9
mov eax, dword [esp + 0x38]
and eax, 2
cmp al, 2
jne 0x4b6fd9
test byte [esp + 0x1c], al
je 0x4b6fd9
fst dword [esp + 0x2c]
mov dword [esp + 0x28], 0
fld dword [0x4c8790]
mov dword [esp + 0x30], 0xffffffff
fcomp st(1)
fnstsw ax
test ah, 5
jp 0x4b6fc8
mov edi, dword [esp + 0x24]
mov edx, dword [esp + 0x84]
lea ecx, [edi + 0x38]
push ecx
fstp dword [esp]
lea eax, [esp + 0x78]
push eax
mov dword [ecx], edx
lea edx, [esp + 0x70]
push edx
lea eax, [edi + 4]
push eax
call dword [0x4c439c]
mov eax, dword [edi + 0x48]
test eax, eax
je 0x4b6fb2
mov ecx, dword [edi + 0x4c]
sub ecx, eax
mov eax, 0x92492493
imul ecx
add edx, ecx
sar edx, 5
mov ecx, edx
shr ecx, 0x1f
add ecx, edx
je 0x4b6fb2
mov ecx, dword [edi + 0x48]
fld dword [ecx + 0x2c]
fld dword [esp + 0x2c]
fcompp
fnstsw ax
test ah, 0x41
jne 0x4b6fb2
fld dword [ecx + 0x2c]
mov eax, dword [ecx + 0x28]
fstp dword [esp + 0x20]
mov dword [esp + 0x28], 0
fld dword [esp + 0x20]
mov dword [esp + 0x30], eax
fld qword [0x4d0ca0]
fadd st(1), st(0)
fld dword [esp + 0x80]
fsub st(2)
fstp dword [esp + 0x80]
fxch st(1)
fstp dword [esp + 0x20]
fld dword [esp + 0x74]
fld dword [esp + 0x20]
fld st(0)
fmulp st(2)
fld dword [esp + 0x68]
faddp st(2)
fxch st(1)
fstp dword [esp + 0x68]
fld dword [esp + 0x78]
fmul st(1)
fadd dword [esp + 0x6c]
fstp dword [esp + 0x6c]
fmul dword [esp + 0x7c]
fadd dword [esp + 0x70]
fstp dword [esp + 0x70]
fld dword [ebx + 0x18]
fsub dword [esp + 0x80]
fsubrp st(1)
fstp dword [esp + 0x2c]
cmp dword [esp + 0x30], 0
jge 0x4b6fdb
push 0
push 2
lea ecx, [esp + 0x40]
call fcn.00411840
jmp 0x4b6fdb
push 0
fstp st(0)
push 2
lea ecx, [esp + 0x40]
call fcn.00411840
jmp 0x4b6fdb
fstp st(0)
mov eax, dword [esp + 0x34]
test dword [ebx + 0x20], eax
je 0x4b7282
mov edx, dword [esp + 0x38]
test edx, eax
je 0x4b7282
mov ecx, dword [esp + 0x1c]
test ecx, eax
je 0x4b7282
lea edx, [esp + 0x94]
push edx
mov ecx, esi
call fcn.0041a700
mov edi, eax
lea eax, [esp + 0xa8]
push eax
mov ecx, esi
call fcn.0041a340
mov ecx, dword [edi]
mov edx, dword [eax]
push ecx
push edx
lea eax, [esp + 0xb8]
push eax
mov ecx, esi
call fcn.00417700
fld dword [0x4c8790]
fld dword [esp + 0x58]
fcom st(1)
fnstsw ax
fstp st(1)
test ah, 0x41
jne 0x4b71ea
mov ecx, dword [sym.XR_3DA.exe_class_ISpatial_DB__g_SpatialSpace]
fstp dword [esp + 0x1c]
mov edi, ecx
mov dword [esp + 0x20], edi
call dword [0x4c4414]
mov esi, dword [esp + 0x24]
lea ecx, [esp + 0xb8]
add esi, 0x64
push ecx
mov ecx, esi
mov dword [edi + 0x40], esi
call fcn.0041a700
lea edx, [esp + 0x8c]
push edx
mov ecx, esi
mov dword [esp + 0x1c], eax
call fcn.0041a340
mov ecx, dword [esp + 0x18]
mov edx, dword [ecx]
mov eax, dword [eax]
push edx
push eax
lea ecx, [esp + 0xb4]
push ecx
mov ecx, esi
call fcn.0041c960
fld dword [esp + 0x1c]
mov edx, dword [0x4c441c]
test byte [edx + 0x4c], 2
push ecx
fstp dword [esp]
push edi
je 0x4b70f4
mov esi, dword [esp + 0x6c]
lea eax, [esp + 0xc8]
push eax
lea ecx, [esp + 0x58]
lea edx, [esp + 0x4c]
call fcn.00423f10
fld dword [edi + 0x3c]
mov edx, dword [edi + 0x2c]
push ecx
fstp dword [esp]
lea ecx, [edi + 0x30]
push ecx
push edx
lea ecx, [esp + 0xcc]
call fcn.00424b10
jmp 0x4b712a
mov ecx, dword [esp + 0x6c]
lea edi, [esp + 0x54]
lea eax, [esp + 0x48]
lea esi, [esp + 0xc8]
call fcn.00424ec0
mov eax, dword [esp + 0x20]
fld dword [eax + 0x3c]
mov edx, dword [eax + 0x2c]
push ecx
lea ecx, [eax + 0x30]
fstp dword [esp]
push ecx
push edx
mov ecx, esi
call fcn.004262e0
mov edi, dword [esp + 0x20]
mov ecx, edi
call dword [0x4c4418]
mov esi, dword [esp + 0x24]
add esi, 0x64
mov ecx, esi
xor edi, edi
mov dword [esp + 0x18], esi
call fcn.004191d0
test eax, eax
jbe 0x4b71ec
mov edi, edi
lea eax, [esp + 0x9c]
push eax
mov ecx, esi
call fcn.0041a340
mov ecx, dword [eax]
lea edx, [ecx + edi*4]
lea ecx, [esp + 0x3c]
mov dword [esp + 0x3c], edx
call fcn.004191c0
mov ecx, dword [eax]
mov eax, dword [ecx]
mov edx, dword [eax + 0x10]
call edx
test eax, eax
je 0x4b71d2
cmp eax, dword [ebp + 0x1c]
je 0x4b71d2
mov ecx, dword [ebx + 0x20]
test cl, 9
mov esi, dword [eax + 0xa0]
mov edx, dword [esi + 0x34]
je 0x4b7198
test edx, edx
je 0x4b71a2
test cl, 4
je 0x4b71d2
cmp edx, 1
jne 0x4b71d2
mov ecx, dword [ebp + 0x18]
test ecx, ecx
je 0x4b71bc
mov edx, dword [ebp + 0x14]
push edx
push eax
lea eax, [esp + 0x48]
push eax
call ecx
add esp, 0xc
test eax, eax
je 0x4b71d2
mov eax, dword [esp + 0x24]
mov edx, dword [esi]
mov edx, dword [edx + 4]
add eax, 0x54
push eax
lea eax, [esp + 0x44]
push eax
mov ecx, esi
call edx
mov esi, dword [esp + 0x18]
mov ecx, esi
add edi, 1
call fcn.004191d0
cmp edi, eax
jb 0x4b7150
jmp 0x4b71ec
fstp st(0)
mov esi, dword [esp + 0x24]
add esi, 0x54
mov ecx, esi
call fcn.00417690
test eax, eax
je 0x4b7272
lea eax, [esp + 0xbc]
push eax
mov ecx, esi
call fcn.0041a340
mov ecx, eax
call fcn.004191c0
fld dword [eax + 4]
fld qword [0x4d0ca0]
fadd st(1), st(0)
fxch st(1)
fsubr dword [esp + 0x58]
fstp dword [esp + 0x58]
fld dword [eax + 4]
fadd st(1)
fstp dword [esp + 0x18]
fld dword [esp + 0x4c]
fld dword [esp + 0x18]
fld st(0)
fmulp st(2)
fld dword [esp + 0x40]
faddp st(2)
fxch st(1)
fstp dword [esp + 0x40]
fld dword [esp + 0x50]
fmul st(1)
fadd dword [esp + 0x44]
fstp dword [esp + 0x44]
fmul dword [esp + 0x54]
fadd dword [esp + 0x48]
fstp dword [esp + 0x48]
fld dword [ebx + 0x18]
fsub dword [esp + 0x58]
fsubrp st(1)
fstp dword [eax + 4]
jmp 0x4b7282
mov ecx, dword [esp + 0x34]
push 0
push ecx
lea ecx, [esp + 0x40]
call fcn.00411840
cmp dword [esp + 0x30], 0
jl 0x4b73da
mov ecx, esi
call fcn.00417690
test eax, eax
je 0x4b7387
lea edx, [esp + 0xa4]
push edx
mov ecx, esi
call fcn.0041a340
mov ecx, eax
call fcn.004191c0
fld dword [esp + 0x2c]
fld dword [eax + 4]
fcompp
fnstsw ax
test ah, 0x41
jne 0x4b730e
mov eax, dword [ebp + 0x10]
test eax, eax
je 0x4b72d9
mov ecx, dword [ebp + 0x14]
push ecx
lea edx, [esp + 0x2c]
push edx
call eax
add esp, 8
jmp 0x4b72de
mov eax, 1
mov edi, dword [ebp + 8]
neg eax
sbb eax, eax
and eax, 2
mov ecx, edi
mov dword [esp + 0x1c], eax
call fcn.00412d70
test eax, eax
jne 0x4b72fd
push edi
call fcn.00435ac0
lea eax, [esp + 0x28]
push eax
mov eax, edi
call fcn.00435bf0
jmp 0x4b7463
mov edi, dword [ebp + 0x10]
test edi, edi
je 0x4b7337
lea ecx, [esp + 0xb4]
push ecx
mov ecx, esi
call fcn.0041a340
mov ecx, eax
call fcn.004191c0
mov edx, dword [ebp + 0x14]
push edx
push eax
call edi
add esp, 8
jmp 0x4b733c
mov eax, 1
neg eax
sbb eax, eax
and eax, dword [esp + 0x34]
mov ecx, esi
mov dword [esp + 0x1c], eax
lea eax, [esp + 0x90]
push eax
call fcn.0041a340
mov ecx, eax
call fcn.004191c0
mov edi, dword [ebp + 8]
mov ecx, edi
mov dword [esp + 0x18], eax
call fcn.00412d70
test eax, eax
jne 0x4b7376
push edi
call fcn.00435ac0
mov ecx, dword [esp + 0x18]
push ecx
mov eax, edi
call fcn.00435bf0
jmp 0x4b7463
cmp dword [esp + 0x30], 0
jl 0x4b73da
mov eax, dword [ebp + 0x10]
test eax, eax
je 0x4b73a5
mov edx, dword [ebp + 0x14]
push edx
lea ecx, [esp + 0x2c]
push ecx
call eax
add esp, 8
jmp 0x4b73aa
mov eax, 1
mov edi, dword [ebp + 8]
neg eax
sbb eax, eax
and eax, 2
mov ecx, edi
mov dword [esp + 0x1c], eax
call fcn.00412d70
test eax, eax
jne 0x4b73c9
push edi
call fcn.00435ac0
lea edx, [esp + 0x28]
push edx
mov eax, edi
call fcn.00435bf0
jmp 0x4b7463
mov ecx, esi
call fcn.00417690
test eax, eax
je 0x4b745b
mov edi, dword [ebp + 0x10]
test edi, edi
je 0x4b740e
lea eax, [esp + 0x98]
push eax
mov ecx, esi
call fcn.0041a340
mov ecx, eax
call fcn.004191c0
mov ecx, dword [ebp + 0x14]
push ecx
push eax
call edi
add esp, 8
jmp 0x4b7413
mov eax, 1
neg eax
sbb eax, eax
and eax, dword [esp + 0x34]
lea edx, [esp + 0xa0]
push edx
mov ecx, esi
mov dword [esp + 0x20], eax
call fcn.0041a340
mov ecx, eax
call fcn.004191c0
mov edi, dword [ebp + 8]
mov ecx, edi
mov dword [esp + 0x18], eax
call fcn.00412d70
test eax, eax
jne 0x4b744d
push edi
call fcn.00435ac0
mov eax, dword [esp + 0x18]
push eax
mov eax, edi
call fcn.00435bf0
jmp 0x4b7463
mov dword [esp + 0x1c], 0
test byte [ebx + 0x1c], 6
jne 0x4b7474
cmp dword [esp + 0x1c], 0
jne 0x4b6e83
mov ecx, dword [ebp + 8]
call fcn.00417690
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 0x18