Function at 0x46f760
Capabilities:
Check for peb ntglobalflag flag
Resolve function by parsing pe exports

Disassembly:
push 0xffffffffffffffff
push 0x4a5ef8
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x50
mov eax, 0x7fff
push ebx
mov word [esp + 0x14], ax
mov word [esp + 0x16], ax
push ebp
mov eax, 0xffff8001
push esi
push edi
mov dword [esp + 0x10], 7
mov word [esp + 0x24], ax
mov word [esp + 0x26], ax
mov ebx, dword [esp + 0x78]
lea ecx, [esp + 0x28]
mov dword [esp + 0x68], 0
lea eax, [ebx + 0x70]
push eax
call fcn.0040f9a0
mov ebp, dword [esp + 0x70]
mov ecx, 7
lea esi, [esp + 0x28]
lea edi, [esp + 0x44]
mov edx, dword [ebp]
push 0
rep movsd dword es:[edi], dword [esi]
push 1
mov ecx, ebp
call dword [edx + 0x2c]
mov eax, dword [esp + 0x30]
mov dword [esp + 0x70], 0xffff8001
test eax, eax
mov dword [esp + 0x78], 0
je 0x46f7f8
mov dword [esp + 0x3c], eax
jmp 0x46f7fd
mov byte [esp + 0x39], 1
mov byte [esp + 0x40], 0
mov ecx, dword [esp + 0x28]
cmp dword [ecx], 0
je 0x46f9b3
cmp eax, dword [esp + 0x3c]
jne 0x46f821
mov cl, byte [esp + 0x40]
test cl, cl
jne 0x46f9b3
mov edi, eax
mov dword [esp + 0x18], edi
mov ecx, dword [edi + 4]
mov edx, dword [edi + 8]
mov eax, dword [edi + 0xc]
mov dword [esp + 0x20], edx
shr ecx, 0x1e
test cl, 1
mov dword [esp + 0x24], eax
jne 0x46f94f
movsx eax, word [esp + 0x20]
mov edx, dword [esp + 0x70]
mov ecx, dword [ebx + 0x3c]
mov dword [esp + 0x1c], eax
sub eax, edx
cmp eax, ecx
mov dword [esp + 0x14], eax
jle 0x46f94f
cmp eax, dword [ebx + 0x38]
jge 0x46f86c
cmp eax, dword [ebx + 0x40]
jle 0x46f8d6
mov edx, dword [esp + 0x78]
test dx, dx
jle 0x46f8d6
mov ecx, dword [esp + 0x74]
test cx, cx
jle 0x46f8bb
cmp byte [0x4dc2f0], 0
je 0x46f8bb
fld dword [ebx + 0x2c]
fmul qword [0x4dcb20]
mov ax, word [ebx + 0xe]
push ecx
fstp dword [esp]
push eax
mov ax, word [ebx + 0xc]
push eax
lea eax, [ebx + 0x60]
push eax
push edx
mov edx, dword [esp + 0x24]
push ecx
lea ecx, [esp + 0x5c]
push ecx
push edx
push ebp
call fcn.0046fa20
mov eax, dword [esp + 0x38]
add esp, 0x24
mov ecx, 7
lea esi, [esp + 0x28]
lea edi, [esp + 0x44]
mov dword [esp + 0x78], 0
rep movsd dword es:[edi], dword [esi]
mov edi, dword [esp + 0x18]
mov esi, dword [esp + 0x10]
cmp esi, 7
jne 0x46f8ed
mov dword [esp + 0x10], 2
mov esi, dword [esp + 0x10]
jmp 0x46f8f2
inc esi
mov dword [esp + 0x10], esi
cmp eax, dword [ebx + 0x38]
jge 0x46f953
mov edx, dword [ebx + 0x40]
xor ecx, ecx
cmp eax, edx
mov edx, dword [ebp]
setle cl
dec ecx
and ecx, 4
add ecx, 0x11
mov eax, ecx
mov ecx, ebp
push eax
call dword [edx + 0xc]
movsx ecx, word [esp + 0x26]
mov dword [esp + 0x18], ecx
push ecx
fild dword [esp + 0x1c]
movsx edx, word [esp + 0x26]
fstp dword [esp]
fild dword [esp + 0x20]
push ecx
mov dword [esp + 0x24], edx
mov eax, dword [ebp]
fstp dword [esp]
fild dword [esp + 0x24]
push ecx
fstp dword [esp]
fild dword [esp + 0x7c]
push ecx
mov ecx, ebp
fstp dword [esp]
call dword [eax + 0x3c]
jmp 0x46f953
mov esi, dword [esp + 0x10]
mov eax, dword [edi + 4]
shr eax, 0x1e
test al, 1
jne 0x46f966
movsx ecx, word [esp + 0x24]
mov dword [esp + 0x70], ecx
mov ecx, dword [edi + 0x18]
test ecx, ecx
je 0x46f975
push esi
push esi
push ebp
call fcn.00435a40
mov ecx, dword [edi + 0x1c]
test ecx, ecx
je 0x46f984
push esi
push esi
push ebp
call fcn.0043bbb0
mov edx, dword [edi + 4]
shr edx, 0x1e
test dl, 1
jne 0x46f9a1
mov eax, dword [edi + 0x18]
test eax, eax
jne 0x46f99d
mov eax, dword [edi + 0x1c]
test eax, eax
je 0x46f9a1
inc dword [esp + 0x78]
lea ecx, [esp + 0x28]
call fcn.004403e0
mov eax, dword [esp + 0x30]
jmp 0x46f802
mov eax, dword [esp + 0x74]
test ax, ax
jle 0x46f9ff
mov cl, byte [0x4dc2f0]
test cl, cl
je 0x46f9ff
mov ecx, dword [esp + 0x78]
test cx, cx
jle 0x46f9ff
fld dword [ebx + 0x2c]
fmul qword [0x4dcb20]
mov dx, word [ebx + 0xe]
push ecx
add ebx, 0x60
fstp dword [esp]
push edx
mov dx, word [ebx - 0x54]
push edx
push ebx
push ecx
mov ecx, dword [esp + 0x24]
push eax
lea eax, [esp + 0x5c]
push eax
push ecx
push ebp
call fcn.0046fa20
add esp, 0x24
mov ecx, dword [esp + 0x60]
pop edi
pop esi
pop ebp
pop ebx
mov dword fs:[0], ecx
add esp, 0x5c
ret