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

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
sub esp, 0x64
mov eax, dword [ebp + 0x10]
push ebx
push esi
push edi
mov ebx, dword [eax]
mov eax, dword [ebp + 0x14]
mov dword [esp + 0x34], ebx
mov dword [esp + 0x50], 0
mov ecx, dword [eax + 0x484]
test ecx, ecx
jle 0x46d7d8
mov ecx, dword [ebp + 0x20]
mov edx, dword [ebp + 0x1c]
add eax, 0x888
sub edx, ecx
mov dword [esp + 0x18], ecx
mov dword [esp + 0x14], eax
mov dword [esp + 0x6c], edx
mov ecx, dword [eax - 0x400]
mov edx, dword [ebp + 0x28]
shl ecx, 2
cmp dword [ecx + edx], 0
jne 0x46d495
mov esi, dword [eax]
cmp dword [edx + esi*4], 0
je 0x46d7ac
mov eax, dword [eax]
mov edx, dword [ebp + 0x18]
shl eax, 2
mov esi, dword [ecx + edx]
mov edi, dword [eax + edx]
mov edx, dword [esp + 0x34]
mov dword [esp + 0x5c], esi
mov dword [esp + 0x3c], edi
lea esi, [esi + edx*4]
lea edx, [edi + edx*4]
mov dword [esp + 0x60], edx
mov edx, dword [ebp + 0x24]
mov dword [esp + 0x2c], esi
mov esi, dword [ecx + edx]
mov eax, dword [eax + edx]
mov edx, dword [ebp + 0xc]
mov dword [esp + 0x58], esi
mov esi, dword [ebp + 8]
mov dword [esp + 0x54], eax
mov eax, dword [edx + esi*4 + 0xfc]
fld qword [eax*8 + 0x4c47d8]
mov eax, dword [edx + esi*4 + 0x138]
fstp dword [esp + 0x38]
fld qword [eax*8 + 0x4c47d8]
mov eax, dword [ebp + 0x10]
fstp dword [esp + 0x1c]
mov eax, dword [eax + 4]
cmp dword [eax + 0x1f8], 0
je 0x46d50d
mov ebx, dword [eax + 0x200]
mov eax, dword [eax]
mov dword [esp + 0xc], ebx
lea eax, [eax + eax*2]
lea ebx, [esi + eax*4]
add eax, ebx
mov eax, dword [edx + eax*4 + 0x84]
mov dword [esp + 0x48], eax
mov eax, dword [ebp + 0x28]
mov dword [ecx + eax], 1
mov ecx, dword [esp + 0x14]
mov ecx, dword [ecx]
mov dword [eax + ecx*4], 1
mov eax, dword [esp + 0x34]
cmp eax, 0x3e8
jle 0x46d55a
mov edx, dword [edx + esi*4 + 0x138]
fld qword [edx*8 + 0x4c4820]
fstp dword [esp + 0x1c]
mov eax, dword [ebp + 0x10]
xor edx, edx
mov dword [esp + 0x4c], edx
mov ebx, dword [eax]
test ebx, ebx
jle 0x46d7a8
mov ecx, dword [esp + 0xc]
xor esi, esi
mov dword [esp + 0x30], esi
test ecx, ecx
mov dword [esp + 0x10], 0
jle 0x46d6c8
mov eax, dword [esp + 0x54]
mov ecx, dword [esp + 0x58]
mov ebx, dword [esp + 0x2c]
sub eax, ecx
mov dword [esp + 0x68], eax
mov eax, ecx
mov ecx, dword [esp + 0x5c]
sub eax, edi
mov dword [esp + 0x64], eax
mov eax, dword [esp + 0x60]
mov dword [esp + 0x28], esi
add esi, edi
sub ecx, edi
sub ebx, edi
sub eax, edi
mov dword [esp + 0x40], edx
mov dword [esp + 0x20], eax
mov eax, dword [esp + 0xc]
mov dword [esp + 0x24], ecx
mov dword [esp + 0x44], eax
cmp edx, dword [ebp + 0x2c]
jge 0x46d802
cmp edx, dword [esp + 0x48]
jl 0x46d5ff
fld dword [ecx + esi]
fabs
fld dword [esp + 0x1c]
fcompp
fnstsw ax
and eax, 0x4100
jne 0x46d5ff
fld dword [esi]
fabs
fld dword [esp + 0x1c]
fcompp
fnstsw ax
and eax, 0x4100
je 0x46d62e
fld dword [ecx + esi]
fabs
fld dword [esp + 0x38]
fcompp
fnstsw ax
and eax, 0x4100
jne 0x46d7df
fld dword [esi]
fabs
fld dword [esp + 0x38]
fcompp
fnstsw ax
and eax, 0x4100
jne 0x46d7df
mov ecx, dword [esp + 0x64]
mov edx, dword [esp + 0x20]
add edx, esi
lea edi, [ebx + esi]
lea eax, [ecx + esi]
mov ecx, dword [esp + 0x68]
push edx
push edi
mov edx, dword [eax + ecx]
mov eax, dword [eax]
mov ecx, dword [esp + 0x20]
push edx
mov edx, dword [esp + 0x78]
push eax
mov eax, dword [ecx + edx]
mov ecx, dword [esp + 0x38]
mov edx, dword [eax + ecx]
push edx
call fcn.0046d900
fld dword [edi]
fadd dword [0x4a04dc]
add esp, 0xc
fstp qword [esp]
call fcn.0048482e
fcomp qword [0x49aaa0]
mov ecx, dword [esp + 0x2c]
add esp, 8
fnstsw ax
test ah, 0x44
jp 0x46d69a
fld dword [edi]
fld st(0)
fmul st(1)
fadd dword [esp + 0x10]
fstp dword [esp + 0x10]
fstp st(0)
mov edi, dword [esp + 0x3c]
mov eax, dword [esp + 0x28]
mov edx, dword [esp + 0x40]
add eax, 4
add esi, 4
mov dword [esp + 0x28], eax
mov eax, dword [esp + 0x44]
inc edx
dec eax
mov dword [esp + 0x40], edx
mov dword [esp + 0x44], eax
jne 0x46d5c9
mov ecx, dword [esp + 0xc]
mov eax, dword [ebp + 0x10]
mov edx, dword [eax + 4]
mov eax, dword [edx + 0x1f8]
test eax, eax
je 0x46d780
test ecx, ecx
mov dword [esp + 0x44], 0
jle 0x46d780
mov ebx, dword [esp + 0x30]
mov eax, dword [ebp + 0x10]
fld dword [esp + 0x10]
mov edx, dword [eax + 4]
fcomp qword [edx + 0x208]
fnstsw ax
and eax, 0x100
jne 0x46d780
mov eax, dword [esp + 0x18]
mov edx, dword [eax]
mov eax, dword [ebp + 0x2c]
mov esi, dword [ebx + edx]
cmp esi, eax
jge 0x46d76c
cmp esi, dword [esp + 0x48]
jl 0x46d76c
mov eax, dword [esp + 0x2c]
sub esp, 8
fld dword [eax + esi*4]
fadd dword [0x4a04dc]
fstp qword [esp]
call fcn.0048482e
fcomp qword [0x49aaa0]
add esp, 8
fnstsw ax
test ah, 0x44
jp 0x46d768
mov ecx, dword [esp + 0x2c]
mov edx, dword [ecx + esi*4]
push edx
call fcn.0046d410
fstp dword [ecx + esi*4]
fld dword [esp + 0x14]
fsub dword [0x4a04a0]
add esp, 4
fstp dword [esp + 0x10]
mov ecx, dword [esp + 0xc]
mov eax, dword [esp + 0x44]
add ebx, 4
inc eax
cmp eax, ecx
mov dword [esp + 0x44], eax
jl 0x46d6f0
mov esi, dword [esp + 0x30]
mov edx, dword [esp + 0x4c]
lea eax, [ecx*4]
add edx, ecx
add esi, eax
mov eax, dword [ebp + 0x10]
mov dword [esp + 0x4c], edx
mov dword [esp + 0x30], esi
mov ebx, dword [eax]
cmp edx, ebx
jl 0x46d577
mov eax, dword [esp + 0x14]
mov edx, dword [ebp + 0x14]
mov ecx, dword [esp + 0x50]
mov edi, dword [esp + 0x18]
inc ecx
mov esi, dword [edx + 0x484]
add eax, 4
add edi, 4
cmp ecx, esi
mov dword [esp + 0x50], ecx
mov dword [esp + 0x14], eax
mov dword [esp + 0x18], edi
jl 0x46d477
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
mov eax, dword [esp + 0x20]
mov ecx, dword [ecx + esi]
add eax, esi
lea edx, [ebx + esi]
push eax
mov eax, dword [esi]
push edx
push eax
push ecx
call fcn.0046d820
mov ecx, dword [esp + 0x34]
add esp, 0x10
jmp 0x46d69e
mov edx, dword [esp + 0x20]
mov dword [ebx + esi], 0
mov dword [edx + esi], 0
jmp 0x46d69e