Function at 0x46b7f0
Capabilities:
Access peb ldr_data

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
push 0xffffffffffffffff
push 0x4f5312
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x17c
push ebx
push esi
xor esi, esi
push edi
lea ecx, [esp + 0xf0]
mov dword [esp + 0x10], esi
mov dword [esp + 0x18], esi
mov dword [esp + 0x14], esi
mov dword [esp + 0xc], esi
call dword [0x4fffcc]
lea ecx, [esp + 0x30]
mov dword [esp + 0x190], esi
call dword [0x500074]
mov edi, dword [ebp + 8]
mov byte [esp + 0x190], 1
cmp edi, esi
je 0x46bafb
fld qword [ebp + 0xc]
fmul qword [0x5051a0]
lea eax, [esp + 0x18]
lea ecx, [esp + 0x14]
push eax
lea edx, [esp + 0x14]
push ecx
push edx
sub esp, 8
fstp qword [esp]
push edi
call fcn.00469bb0
mov esi, dword [esp + 0x24]
mov ebx, eax
mov eax, dword [esp + 0x2c]
add esp, 0x18
cmp esi, eax
mov dword [esp + 0x1c], ebx
jge 0x46bacc
fld qword [ebp + 0xc]
fmul qword [0x502638]
fstp qword [esp + 0x24]
mov ecx, dword [esp + 0x28]
mov edx, dword [esp + 0x24]
push ecx
lea ecx, [esp + 0x34]
push edx
push ecx
lea edx, [esp + 0xfc]
lea ecx, [esp + 0x18]
push edx
push ecx
push eax
push ebx
call fcn.0046a4c0
add esp, 0x1c
test eax, eax
je 0x46ba13
cmp eax, 2
je 0x46ba13
cmp eax, 1
jne 0x46ba05
fld qword [esp + 0xe0]
fcomp qword [ebp + 0x14]
fnstsw ax
test ah, 0x41
jne 0x46b926
mov edx, dword [ebp + 0x1c]
mov eax, dword [ebp + 0x10]
mov ecx, dword [ebp + 0xc]
push edx
push eax
mov eax, dword [esp + 0x18]
push ecx
mov ecx, dword [esp + 0x18]
mov edx, dword [eax + ecx*8 + 4]
mov ecx, dword [eax + ecx*8]
push edx
mov edx, dword [eax + esi*8 + 4]
mov eax, dword [eax + esi*8]
push ecx
push edx
push eax
push edi
call fcn.0046b0d0
add esp, 0x20
jmp 0x46ba95
mov ecx, dword [esp + 0xc]
lea edx, [esi + 2]
cmp edx, ecx
jne 0x46b943
mov eax, dword [ebp + 0x1c]
mov edx, dword [ebp + 0x10]
push eax
mov eax, dword [ebp + 0xc]
push edx
push eax
mov eax, dword [esp + 0x1c]
jmp 0x46b906
push 0xc0
call fcn.004a021c
mov ebx, eax
add esp, 4
mov dword [esp + 0x20], ebx
test ebx, ebx
mov byte [esp + 0x190], 3
je 0x46b972
mov ecx, ebx
call dword [0x500074]
mov dword [ebx], 0x504e38
jmp 0x46b974
xor ebx, ebx
lea edi, [ebx + 0x68]
mov ecx, 6
lea esi, [esp + 0x98]
push ebx
rep movsd dword es:[edi], dword [esi]
lea edi, [ebx + 0x80]
mov ecx, 6
lea esi, [esp + 0xb4]
mov byte [esp + 0x194], 1
rep movsd dword es:[edi], dword [esi]
lea edi, [ebx + 0x98]
mov ecx, 6
lea esi, [esp + 0xcc]
rep movsd dword es:[edi], dword [esi]
mov ecx, dword [esp + 0xe4]
mov edx, dword [esp + 0xe8]
mov esi, dword [ebp + 0x1c]
mov dword [ebx + 0xb0], ecx
mov dword [ebx + 0xb4], edx
mov eax, dword [esp + 0xec]
mov ecx, dword [esp + 0xf0]
mov dword [ebx + 0xb8], eax
mov dword [ebx + 0xbc], ecx
mov ecx, esi
call fcn.004a069c
mov edx, dword [esi + 0x1c]
lea ecx, [esi + 0x1c]
push 0
push ebx
call dword [edx + 0x24]
jmp 0x46ba92
cmp eax, 3
jne 0x46baab
jmp 0x46ba95
push 0x98
call fcn.004a021c
mov ebx, eax
add esp, 4
mov dword [esp + 0x20], ebx
test ebx, ebx
mov byte [esp + 0x190], 2
je 0x46ba42
mov ecx, ebx
call dword [0x4fffcc]
mov dword [ebx], 0x50480c
jmp 0x46ba44
xor ebx, ebx
test ebx, ebx
mov byte [esp + 0x190], 1
jne 0x46ba56
call dword [0x50064c]
lea edi, [ebx + 0x68]
mov ecx, 6
lea esi, [esp + 0x158]
push ebx
rep movsd dword es:[edi], dword [esi]
lea edi, [ebx + 0x80]
mov ecx, 6
lea esi, [esp + 0x174]
rep movsd dword es:[edi], dword [esi]
mov esi, dword [ebp + 0x1c]
mov ecx, esi
call fcn.004a069c
mov eax, dword [esi + 0x1c]
lea ecx, [esi + 0x1c]
push 0
push ebx
call dword [eax + 0x24]
mov edi, dword [ebp + 8]
mov esi, dword [esp + 0xc]
mov eax, dword [esp + 0x14]
mov ebx, dword [esp + 0x1c]
cmp esi, eax
jl 0x46b8a1
jmp 0x46bacc
push 0xffffffffffffffff
push 0
push 0x9d8c
call fcn.004a017a
mov esi, dword [ebp + 0x1c]
mov ecx, esi
call fcn.004a0282
mov edx, dword [esi + 0x1c]
lea ecx, [esi + 0x1c]
call dword [edx + 0x28]
mov eax, dword [esp + 0x10]
test eax, eax
je 0x46badd
push eax
call fcn.004a00fc
add esp, 4
test ebx, ebx
je 0x46baea
push ebx
call fcn.004a00fc
add esp, 4
mov eax, dword [esp + 0x18]
test eax, eax
je 0x46bafb
push eax
call fcn.004a00fc
add esp, 4
lea ecx, [esp + 0x30]
mov byte [esp + 0x190], 0
call dword [0x500070]
lea ecx, [esp + 0xf0]
mov dword [esp + 0x190], 0xffffffff
call dword [0x4ffdc4]
mov ecx, dword [esp + 0x188]
pop edi
pop esi
mov dword fs:[0], ecx
pop ebx
mov esp, ebp
pop ebp
ret