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

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff0
sub esp, 0x134
push ebx
push esi
mov esi, dword [ebp + 0x10]
mov eax, esi
mov ecx, dword [eax]
mov edx, dword [eax + 4]
mov dword [esp + 0x88], ecx
mov ecx, dword [eax + 8]
mov dword [esp + 0x90], ecx
fld dword [esp + 0x90]
fadd dword [esi + 0x24]
push edi
mov edi, dword [ebp + 8]
mov ecx, dword [edi]
mov dword [esp + 0x90], edx
fstp dword [esp + 0x94]
mov edx, dword [eax + 0xc]
mov dword [esp + 0x50], vtable.hkSimpleClosestContactCollector.0
mov byte [esp + 0x58], 0
mov dword [esp + 0x6c], 0x7f7fffff
mov dword [esp + 0x54], 0x7f7fffff
mov dword [esp + 0x98], edx
mov eax, dword [ecx]
call dword [eax + 0x14]
mov ecx, dword [ebp + 0xc]
mov ecx, dword [ecx]
mov edx, dword [ecx]
mov ebx, eax
call dword [edx + 0x14]
shl ebx, 5
add ebx, eax
mov eax, dword [esi]
mov ebx, dword [eax + ebx*4 + 0x218c]
mov eax, dword [ebp + 0xc]
lea ecx, [esp + 0x50]
push ecx
lea edx, [esp + 0x90]
push edx
push eax
push edi
call ebx
mov al, byte [esp + 0x68]
add esp, 0x10
test al, al
je 0x4ff42a
mov eax, dword [esp + 0x74]
fld dword [esp + 0x6c]
mov ecx, dword [ebp + 0xc]
fcomp dword [esi + 8]
mov edx, dword [esp + 0x70]
mov dword [esp + 0x34], eax
mov eax, dword [esp + 0x60]
mov dword [esp + 0x20], eax
mov eax, dword [esp + 0x6c]
mov dword [esp + 0x44], ecx
mov ecx, dword [esp + 0x78]
mov dword [esp + 0x30], edx
mov edx, dword [esp + 0x7c]
mov dword [esp + 0x2c], eax
fnstsw ax
mov dword [esp + 0x38], ecx
test ah, 5
mov ecx, dword [esp + 0x64]
mov dword [esp + 0x3c], edx
mov edx, dword [esp + 0x68]
mov dword [esp + 0x40], edi
mov dword [esp + 0x24], ecx
mov dword [esp + 0x28], edx
jp 0x4ff14a
mov ecx, dword [ebp + 0x18]
test ecx, ecx
je 0x4ff14a
mov edx, dword [ecx]
lea eax, [esp + 0x20]
push eax
call dword [edx + 4]
fld dword [esp + 0x78]
fmul dword [esi + 0x18]
fld dword [esp + 0x74]
fmul dword [esi + 0x14]
faddp st(1)
fld dword [esp + 0x70]
fmul dword [esi + 0x10]
faddp st(1)
fld dword [esp + 0x6c]
fadd st(1)
fst dword [esp + 0xc]
fcomp dword [0x641de0]
fnstsw ax
test ah, 0x41
je 0x4ff428
fadd dword [esi + 0x20]
fcomp dword [0x641de0]
fnstsw ax
test ah, 1
je 0x4ff42a
mov ecx, dword [esi + 0xc]
fld dword [esp + 0x6c]
fcomp dword [ecx + 0x18]
fld dword [esp + 0x6c]
fnstsw ax
test ah, 0x41
jp 0x4ff1ff
fcomp dword [0x641de0]
mov ecx, dword [ebp + 0x14]
fnstsw ax
test ah, 0x41
jne 0x4ff1e6
fld dword [esp + 0x6c]
fsub dword [esp + 0xc]
fdivr dword [esp + 0x6c]
fcom dword [ecx + 4]
fnstsw ax
test ah, 0x41
je 0x4ff428
mov edx, dword [ecx]
fstp dword [esp + 0x2c]
lea eax, [esp + 0x20]
push eax
call dword [edx + 4]
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
mov edx, dword [ecx]
lea eax, [esp + 0x20]
push eax
mov dword [esp + 0x30], 0
call dword [edx + 4]
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
fsub dword [esp + 0xc]
mov ecx, dword [edi + 8]
push ecx
lea ecx, [esp + 0xe4]
fdivr dword [esp + 0x70]
mov dword [esp + 0xa4], vtable.hkSimpleClosestContactCollector.0
mov byte [esp + 0xac], 0
mov dword [esp + 0xc0], 0x7f7fffff
mov dword [esp + 0xa8], 0x7f7fffff
fstp dword [esp + 0x30]
call fcn.004fef90
mov ecx, dword [edi]
lea edx, [esp + 0xe0]
mov dword [esp + 0xd8], edx
mov edx, dword [esi + 0xc]
mov dword [esp + 0xdc], edi
mov eax, dword [edi + 4]
mov dword [esp + 0xd4], eax
mov dword [esp + 0xd0], ecx
mov eax, dword [edx + 0x1c]
dec eax
mov dword [esp + 0xc], eax
js 0x4ff414
lea ecx, [ecx]
mov eax, dword [edi + 8]
add eax, 0x50
mov byte [esp + 0xa8], 0
mov dword [esp + 0xbc], 0x7f7fffff
mov dword [esp + 0xa4], 0x7f7fffff
fld dword [eax]
fld dword [esp + 0x2c]
mov ecx, dword [eax + 4]
fmul dword [esi + 0x10]
mov edx, dword [eax + 8]
mov eax, dword [eax + 0xc]
mov dword [esp + 0x14], ecx
faddp st(1)
mov dword [esp + 0x18], edx
fld dword [esp + 0x2c]
mov dword [esp + 0x1c], eax
fmul dword [esi + 0x14]
lea eax, [esp + 0xa0]
push eax
lea eax, [esp + 0xd4]
fadd dword [esp + 0x18]
fld dword [esp + 0x30]
fmul dword [esi + 0x18]
fadd dword [esp + 0x1c]
fstp dword [esp + 0x1c]
mov ecx, dword [esp + 0x1c]
fld dword [esp + 0x30]
mov dword [esp + 0x13c], ecx
fmul dword [esi + 0x1c]
lea ecx, [esp + 0x90]
push ecx
fadd dword [esp + 0x24]
fstp dword [esp + 0x24]
mov edx, dword [esp + 0x24]
mov dword [esp + 0x144], edx
fxch st(1)
mov edx, dword [ebp + 0xc]
fstp dword [esp + 0x138]
push edx
push eax
fstp dword [esp + 0x144]
call ebx
mov al, byte [esp + 0xb8]
add esp, 0x10
test al, al
je 0x4ff42a
fld dword [esp + 0xc4]
fmul dword [esi + 0x14]
fld dword [esp + 0xc8]
fmul dword [esi + 0x18]
faddp st(1)
fld dword [esp + 0xc0]
fmul dword [esi + 0x10]
faddp st(1)
fcom dword [0x641de0]
fnstsw ax
test ah, 1
je 0x4ff428
fchs
fld dword [esp + 0x2c]
fmul st(1)
fadd dword [esp + 0xbc]
fcomp st(1)
fnstsw ax
test ah, 0x41
je 0x4ff428
fdivr dword [esp + 0xbc]
mov ecx, dword [ebp + 0x14]
fadd dword [esp + 0x2c]
fst dword [esp + 0x9c]
fcomp dword [ecx + 4]
fnstsw ax
test ah, 0x41
je 0x4ff42a
mov edx, dword [esp + 0x9c]
push edx
lea eax, [esp + 0xb4]
push eax
lea ecx, [esp + 0x28]
call fcn.004fef30
fld dword [esp + 0xbc]
mov ecx, dword [esp + 0xc0]
mov edx, dword [esp + 0xc4]
mov eax, dword [esp + 0xc8]
mov dword [esp + 0x30], ecx
mov ecx, dword [esp + 0xcc]
mov dword [esp + 0x34], edx
mov edx, dword [esi + 0xc]
mov dword [esp + 0x38], eax
mov dword [esp + 0x3c], ecx
fcomp dword [edx + 0x18]
fnstsw ax
test ah, 0x41
jnp 0x4ff414
dec dword [esp + 0xc]
jns 0x4ff280
mov ecx, dword [ebp + 0x14]
mov eax, dword [ecx]
lea edx, [esp + 0x20]
push edx
call dword [eax + 4]
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
fstp st(0)
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret