Function at 0x493d00
Capabilities:
Access peb ldr_data

Disassembly:
push 0xffffffffffffffff
push 0x4a7018
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x1c
push ebp
push esi
xor esi, esi
mov ecx, 0x7fff
mov eax, 0xffff8001
push edi
mov dword [esp + 0xc], esi
mov word [esp + 0x14], cx
mov word [esp + 0x16], cx
mov word [esp + 0x18], ax
mov word [esp + 0x1a], ax
mov dword [esp + 0x30], esi
mov word [esp + 0x1c], cx
mov word [esp + 0x1e], cx
mov word [esp + 0x20], ax
mov word [esp + 0x22], ax
mov ebp, dword [esp + 0x40]
mov byte [esp + 0x30], 1
mov edi, dword [ebp + 8]
test dword [edi + 4], 0x80000000
je 0x493dbc
mov eax, dword [edi + 0x10]
mov dword [esp + 0x1c], eax
mov ecx, dword [edi + 0x14]
mov dword [esp + 0x20], ecx
mov ecx, ebp
call fcn.004403e0
mov eax, dword [ebp + 8]
cmp dword [eax + 0x18], esi
jne 0x493d8e
cmp dword [eax + 0x1c], esi
je 0x493d7a
mov edx, dword [eax + 4]
shr edx, 0x1e
test dl, 1
jne 0x493d7a
mov eax, dword [esp + 0x38]
mov ecx, dword [esp + 0x1c]
mov edx, dword [esp + 0x20]
pop edi
mov dword [eax], ecx
pop esi
mov dword [eax + 4], edx
pop ebp
mov ecx, dword [esp + 0x1c]
mov dword fs:[0], ecx
add esp, 0x28
ret
mov eax, dword [edi + 8]
push ebx
mov ebx, dword [esp + 0x40]
lea edx, [esp + 0x44]
mov dword [esp + 0x18], eax
mov ecx, dword [edi + 0xc]
push edx
push ebx
lea eax, [esp + 0x18]
push edi
push eax
mov dword [esp + 0x2c], ecx
call fcn.00493f70
mov ecx, dword [eax]
add esp, 0x10
mov dword [esp + 0x20], ecx
mov edx, dword [eax + 4]
mov dword [esp + 0x24], edx
mov ecx, ebp
call fcn.004403e0
mov esi, dword [ebp + 8]
mov eax, dword [esi + 0x18]
test eax, eax
jne 0x493e1b
mov eax, dword [esi + 0x1c]
test eax, eax
jne 0x493e1b
lea eax, [esi + 8]
lea ecx, [esp + 0x18]
push eax
push ecx
call fcn.004384f0
add esp, 8
jmp 0x493e5e
mov edx, dword [esi + 4]
shr edx, 0x1e
test dl, 1
je 0x493e5e
lea eax, [esp + 0x40]
lea ecx, [esp + 0x10]
push eax
push ebx
push esi
push ecx
call fcn.00493f70
lea edx, [esp + 0x30]
push eax
push edx
mov byte [esp + 0x4c], 2
call fcn.004384f0
mov eax, dword [esp + 0x58]
add esp, 0x18
cmp word [esp + 0x44], ax
mov byte [esp + 0x34], 1
jl 0x493e5e
mov dword [esp + 0x44], eax
mov eax, dword [esi + 0x18]
test eax, eax
jne 0x493e6c
mov eax, dword [esi + 0x1c]
test eax, eax
je 0x493df0
mov eax, dword [esi + 4]
shr eax, 0x1e
test al, 1
jne 0x493df0
mov ecx, dword [esp + 0x24]
mov si, word [esp + 0x20]
cmp si, cx
jg 0x493f23
mov edx, dword [esp + 0x26]
cmp dx, word [esp + 0x22]
jl 0x493f23
mov ebp, dword [esp + 0x20]
mov eax, ecx
sub eax, ebp
test ax, ax
jle 0x493f23
movsx eax, ax
mov dword [esp + 0x10], eax
fild dword [esp + 0x10]
movsx eax, si
fmul qword [0x4dcdf8]
mov dword [esp + 0x10], eax
fild dword [esp + 0x10]
movsx eax, word [esp + 0x44]
faddp st(1)
mov dword [esp + 0x10], eax
fild dword [esp + 0x10]
fcompp
fnstsw ax
test ah, 0x41
jne 0x493f23
sub edx, dword [esp + 0x22]
movsx edx, dx
mov dword [esp + 0x10], edx
fild dword [esp + 0x10]
fld dword [ebx + 0x2c]
fmul qword [0x4a8638]
fcompp
fnstsw ax
test ah, 1
je 0x493f23
mov al, byte [0x4dd428]
test al, al
je 0x493f33
mov eax, dword [0x4dc33c]
push 3
push 3
push 1
push 0
push eax
lea ecx, [esp + 0x34]
call fcn.00438470
mov ecx, dword [esp + 0x24]
jmp 0x493f33
mov ecx, dword [esp + 0x18]
mov dword [esp + 0x20], ecx
mov ecx, dword [esp + 0x1c]
mov dword [esp + 0x24], ecx
mov eax, dword [esp + 0x20]
pop ebx
mov dword [edi + 0x10], eax
mov eax, dword [edi + 4]
or eax, 0x80000000
mov dword [edi + 0x14], ecx
mov dword [edi + 4], eax
mov eax, dword [esp + 0x38]
mov edx, dword [esp + 0x1c]
mov ecx, dword [esp + 0x20]
mov dword [eax], edx
mov dword [eax + 4], ecx
mov ecx, dword [esp + 0x28]
pop edi
pop esi
pop ebp
mov dword fs:[0], ecx
add esp, 0x28
ret