Function at 0x46afd0
Capabilities:
Access peb ldr_data

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
push 0xffffffffffffffff
push 0x4d84ec
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x27c
push ebx
push esi
mov esi, ecx
push edi
push 0
lea ecx, [esp + 0x1f4]
mov eax, dword [esi + 0xb8]
mov dword [esp + 0x20], 0
push eax
mov dword [esp + 0x28], 0
call fcn.0044c3d0
mov ecx, dword [esi + 0xb8]
push 0
push ecx
lea ecx, [esp + 0xc8]
mov dword [esp + 0x298], 0
call fcn.0044c3d0
mov edx, dword [esi + 0xb8]
mov ebx, 1
push 0
push edx
lea ecx, [esp + 0x160]
mov byte [esp + 0x298], bl
call fcn.0044c3d0
mov eax, dword [esi + 0xb8]
push 0
push eax
lea ecx, [esp + 0x30]
mov byte [esp + 0x298], 2
call fcn.0044c3d0
mov edx, dword [ebp + 0xc]
mov eax, dword [ebp + 8]
lea ecx, [esp + 0x14]
mov byte [esp + 0x290], 3
push ecx
push edx
push eax
mov ecx, esi
call fcn.0046b440
mov ecx, dword [esi + 0x148]
push 0
lea edx, [esp + 0x20]
push ecx
lea eax, [esp + 0xc8]
push edx
lea ecx, [esp + 0x34]
push eax
lea edx, [esp + 0x168]
push ecx
lea eax, [esp + 0x204]
push edx
push eax
mov ecx, esi
call fcn.0046ad50
mov ecx, dword [esi + 0xec]
mov edx, dword [esi + 0x70]
lea eax, [edx + ecx*8 + 8]
mov edx, dword [edx + ecx*8 + 0xc]
mov ecx, dword [eax]
fld qword [eax]
mov dword [esp + 0x10], edx
mov edx, dword [esi + 0xc0]
cmp edx, ebx
mov dword [esp + 0xc], ecx
jl 0x46b11a
mov ecx, eax
fld qword [esp + 0xc]
fcomp qword [ecx]
fnstsw ax
test ah, 1
je 0x46b107
mov eax, dword [ecx]
mov edi, dword [ecx + 4]
mov dword [esp + 0xc], eax
mov dword [esp + 0x10], edi
fcom qword [ecx]
fnstsw ax
test ah, 0x41
jne 0x46b114
fstp st(0)
fld qword [ecx]
add ecx, 8
dec edx
jne 0x46b0ed
fld qword [esp + 0xc]
fsub st(1)
fabs
fmul qword [esi + 0x90]
fmul qword [0x4dbfc0]
fcomp qword [0x4db678]
fnstsw ax
test ah, 0x40
fstp st(0)
je 0x46b15e
fld qword [esp + 0x14]
fabs
fcom qword [0x4dd238]
fnstsw ax
test ah, 0x41
jne 0x46b15c
fmul qword [0x4dd238]
fstp qword [esp + 0xc]
jmp 0x46b16e
fstp st(0)
mov dword [esp + 0xc], 0xd2f1a9fc
mov dword [esp + 0x10], 0x3f50624d
mov ecx, dword [esp + 0x10]
mov edx, dword [esp + 0xc]
mov eax, dword [esp + 0x18]
push ecx
mov ecx, dword [esp + 0x18]
push edx
push eax
lea edx, [esp + 0x28]
push ecx
lea eax, [esp + 0xd0]
push edx
lea ecx, [esp + 0x3c]
push eax
lea edx, [esp + 0x170]
push ecx
lea eax, [esp + 0x20c]
push edx
push eax
mov ecx, esi
call fcn.0046a870
mov ecx, dword [esi + 0xc0]
mov eax, ebx
cmp ecx, ebx
jl 0x46b203
mov ecx, dword [esi + 0x14c]
mov edx, dword [esi + 0xe8]
mov edi, dword [esi + 0xd8]
add edx, eax
test ecx, ecx
mov ecx, dword [esi + 0x70]
add edi, eax
fld qword [ecx + edi*8]
fadd qword [ecx + edx*8]
lea edx, [ecx + edx*8]
fstp qword [edx]
mov edx, dword [esi + 0xd0]
mov edi, dword [esi + 0xd4]
mov ecx, dword [esi + 0x70]
add edx, eax
add edi, eax
inc eax
lea edx, [ecx + edx*8]
fld qword [ecx + edi*8]
fadd qword [edx]
fstp qword [edx]
cmp eax, dword [esi + 0xc0]
jle 0x46b1b7
mov ecx, dword [esi + 0xb4]
cmp ecx, ebx
jl 0x46b245
mov eax, dword [esi + 0xe4]
mov edi, dword [esi + 0xd0]
add edi, ecx
lea edx, [ecx + eax]
mov eax, dword [esi + 0x70]
fld qword [eax + edi*8 + 8]
fadd qword [eax + edi*8]
mov edi, dword [esi + 0xf8]
add edi, ecx
dec ecx
fmul qword [eax + edi*8]
cmp ecx, ebx
fmul qword [0x4db760]
fsubr qword [eax + edx*8 + 8]
fstp qword [eax + edx*8]
jge 0x46b20d
mov ecx, esi
call fcn.0046b310
mov eax, dword [esi + 0xc0]
mov edx, ebx
cmp eax, ebx
jl 0x46b29e
mov edi, dword [esi + 0x100]
mov ecx, dword [esi + 0x58]
mov eax, edx
add eax, edi
shl eax, 2
add ecx, eax
mov edi, dword [ecx]
cmp edi, 4
mov edi, dword [esi + 0x5c]
jne 0x46b287
mov eax, dword [edi + eax]
sub eax, 2
neg eax
sbb eax, eax
and al, 0xfe
add eax, 6
mov dword [ecx], eax
jmp 0x46b293
cmp dword [edi + eax], 2
jne 0x46b293
mov dword [ecx], 2
mov eax, dword [esi + 0xc0]
inc edx
cmp edx, eax
jle 0x46b258
lea ecx, [esp + 0x28]
mov byte [esp + 0x290], 2
call fcn.0044c440
lea ecx, [esp + 0x158]
mov byte [esp + 0x290], bl
call fcn.0044c440
lea ecx, [esp + 0xc0]
mov byte [esp + 0x290], 0
call fcn.0044c440
lea ecx, [esp + 0x1f0]
mov dword [esp + 0x290], 0xffffffff
call fcn.0044c440
mov ecx, dword [esp + 0x288]
pop edi
pop esi
mov dword fs:[0], ecx
pop ebx
mov esp, ebp
pop ebp
ret 8