Function at 0x493f70
Capabilities:
Access peb ldr_data
Check for peb beingdebugged flag
Get ntdll base address

Disassembly:
push 0xffffffffffffffff
push 0x4a7048
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x18
push esi
push edi
mov dword [esp + 0xc], 0
mov esi, dword [esp + 0x34]
mov edi, dword [esp + 0x38]
sub esp, 8
mov dword [esp + 0x30], 0
mov ecx, dword [esi + 0xc]
mov eax, dword [esi + 8]
mov dword [esp + 0x24], ecx
mov dword [esp + 0x20], eax
movsx ecx, cx
movsx edx, ax
add ecx, edx
mov dword [esp + 0x3c], ecx
lea ecx, [edi + 0x54]
fild dword [esp + 0x3c]
fmul qword [0x4a8220]
fstp qword [esp]
call fcn.00437ae0
mov eax, dword [esi + 0x18]
mov dword [esp + 0x38], 0x4f000000
fstp dword [esp + 8]
test eax, eax
mov dword [esp + 0x34], 0xcf000000
je 0x494036
fld dword [edi + 0x2c]
fmul qword [0x4a8698]
lea ecx, [esp + 0x34]
lea edx, [esp + 0x38]
mov dword [esp + 0x14], 0x3f800000
push ecx
mov ecx, dword [esp + 0x18]
mov dword [esp + 0x14], 0
fadd dword [esp + 0xc]
push edx
mov edx, dword [esp + 0x18]
push ecx
push edx
push ecx
fchs
fstp dword [esp]
push 0xc6fffe00
push eax
call fcn.00427760
add esp, 0x1c
jmp 0x494062
fld dword [edi + 0x2c]
fmul qword [0x4a8698]
mov eax, dword [esi + 0x1c]
lea ecx, [esp + 0x34]
lea edx, [esp + 0x38]
push ecx
fadd dword [esp + 0xc]
push edx
push 0x46fffe00
push ecx
fstp dword [esp]
push eax
call fcn.00427ba0
add esp, 0x14
fld dword [esp + 0x38]
fcomp dword [esp + 0x34]
fnstsw ax
test ah, 0x41
jne 0x49407c
mov eax, dword [esp + 0x3c]
mov word [eax], 0x7fff
jmp 0x49409b
fld dword [esp + 0x38]
sub esp, 8
fstp qword [esp]
call dword [sym.imp.MSVCRT.dll_floor]
add esp, 8
call sub.MSVCRT.dll__ftol
mov ecx, dword [esp + 0x3c]
mov word [ecx], ax
mov eax, dword [esi + 0x18]
mov dword [esp + 0x38], 0x4f000000
test eax, eax
mov dword [esp + 0x34], 0xcf000000
je 0x4940f0
fld dword [esp + 8]
lea edx, [esp + 0x34]
lea ecx, [esp + 0x38]
mov dword [esp + 0x14], 0x3f800000
push edx
mov edx, dword [esp + 0x18]
mov dword [esp + 0x14], 0
push ecx
mov ecx, dword [esp + 0x18]
push edx
push ecx
push ecx
fchs
fstp dword [esp]
push 0xc6fffe00
push eax
call fcn.00427760
add esp, 0x1c
jmp 0x494110
mov eax, dword [esi + 0x1c]
lea edx, [esp + 0x34]
lea ecx, [esp + 0x38]
push edx
mov edx, dword [esp + 0xc]
push ecx
push 0x46fffe00
push edx
push eax
call fcn.00427ba0
add esp, 0x14
fld dword [esp + 0x38]
fcomp dword [esp + 0x34]
fnstsw ax
test ah, 0x41
jne 0x49414c
mov eax, dword [esp + 0x30]
mov ecx, 0xffff8001
pop edi
pop esi
mov word [eax], 0x7fff
mov word [eax + 2], 0x7fff
mov word [eax + 4], cx
mov word [eax + 6], cx
mov ecx, dword [esp + 0x18]
mov dword fs:[0], ecx
add esp, 0x24
ret
mov eax, dword [esi + 0x18]
mov dword [esp + 0x34], 0x4f000000
test eax, eax
mov dword [esp + 0xc], 0xcf000000
je 0x4941a4
fld dword [esp + 8]
fadd dword [edi + 0x2c]
lea ecx, [esp + 0xc]
lea edx, [esp + 0x34]
mov dword [esp + 0x14], 0x3f800000
push ecx
mov ecx, dword [esp + 0x18]
mov dword [esp + 0x14], 0
push edx
mov edx, dword [esp + 0x18]
push ecx
push edx
push 0x46fffe00
push ecx
fchs
fstp dword [esp]
push eax
call fcn.00427760
add esp, 0x1c
jmp 0x4941ca
fld dword [esp + 8]
fadd dword [edi + 0x2c]
mov esi, dword [esi + 0x1c]
lea eax, [esp + 0xc]
lea ecx, [esp + 0x34]
push eax
push ecx
push ecx
fstp dword [esp]
push 0xc6fffe00
push esi
call fcn.00427ba0
add esp, 0x14
fld dword [esp + 0x34]
fcomp dword [esp + 0xc]
fnstsw ax
test ah, 0x41
jne 0x494206
mov eax, dword [esp + 0x30]
mov ecx, 0xffff8001
pop edi
pop esi
mov word [eax], 0x7fff
mov word [eax + 2], 0x7fff
mov word [eax + 4], cx
mov word [eax + 6], cx
mov ecx, dword [esp + 0x18]
mov dword fs:[0], ecx
add esp, 0x24
ret
fld dword [esp + 0xc]
sub esp, 8
fstp qword [esp]
call dword [sym.imp.MSVCRT.dll_ceil]
call sub.MSVCRT.dll__ftol
mov dx, word [esp + 0x26]
mov word [esp + 0x44], ax
mov word [esp + 0x46], dx
fld dword [esp + 0x40]
fstp qword [esp]
call dword [sym.imp.MSVCRT.dll_floor]
add esp, 8
call sub.MSVCRT.dll__ftol
mov word [esp + 8], ax
mov ax, word [esp + 0x1a]
mov word [esp + 0xa], ax
mov ecx, dword [esp + 0x3c]
mov edx, dword [esp + 8]
mov esi, dword [esp + 0x30]
push ecx
push edx
mov ecx, esi
mov byte [esp + 0x30], 2
call fcn.004383d0
mov ecx, dword [esp + 0x20]
mov eax, esi
pop edi
pop esi
mov dword fs:[0], ecx
add esp, 0x24
ret