Function at 0x4e6f00
Capabilities:
Access peb ldr_data

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
mov eax, dword fs:[0]
push 0xffffffffffffffff
push 0x5cba9b
push eax
mov dword fs:[0], esp
sub esp, 0xf0
push ebx
mov ebx, ecx
mov eax, dword [ebx]
mov edx, dword [eax + 0x114]
push esi
push edi
call edx
mov eax, dword [ebx + 0x60]
cmp eax, dword [0x694574]
jne 0x4e6f44
test eax, eax
je 0x4e6f44
call fcn.004e28c0
test byte [ebx + 0x38], 1
mov edi, dword [ebp + 8]
mov esi, 0x10000
je 0x4e7004
push 0
push 0x67d070
push 0x67d0f0
push 0
push edi
call fcn.005c79f8
add esp, 0x14
test eax, eax
je 0x4e7004
test dword [eax + 0x38], esi
je 0x4e7004
mov ecx, dword [ebp + 0x18]
test cl, 2
je 0x4e6f8f
cmp dword [0x694568], 0
je 0x4e7004
test ecx, 0x1000
je 0x4e6fa0
cmp dword [0x694564], 0
je 0x4e7004
fld dword [ebp + 0xc]
mov eax, dword [ebp + 0x14]
fst dword [esp + 0x24]
mov esi, dword [ebp + 0x1c]
fld dword [ebp + 0x10]
mov edx, dword [ebx]
fst dword [esp + 0x28]
mov edx, dword [edx + 0x24]
fld dword [eax + 8]
push esi
fsub dword [eax]
push ecx
push eax
mov ecx, ebx
fstp dword [esp + 0x1c]
fld dword [esp + 0x1c]
faddp st(2)
fxch st(1)
fstp dword [esp + 0x38]
fld dword [eax + 0xc]
fsub dword [eax + 4]
lea eax, [esp + 0x30]
push eax
push edi
fstp dword [esp + 0x24]
fadd dword [esp + 0x24]
fstp dword [esp + 0x44]
call edx
mov ecx, dword [esp + 0xfc]
mov dword fs:[0], ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 0x18
push 0
push 0x67d070
push 0x67d0f0
push 0
push edi
call fcn.005c79f8
add esp, 0x14
mov dword [esp + 0x34], eax
test dword [ebx + 0x38], esi
je 0x4e7197
test eax, eax
je 0x4e7197
test dword [eax + 0x38], esi
je 0x4e7197
lea ecx, [edi + 0x1c]
call fcn.004e2520
test al, al
je 0x4e726f
mov edi, dword [ebp + 0x14]
lea esi, [esp + 0x14]
call fcn.0044b640
mov eax, dword [ebp + 0x18]
test eax, 0x10000000
je 0x4e706f
mov ecx, dword [esp + 0x14]
mov edx, dword [esp + 0x1c]
mov dword [esp + 0x14], edx
mov dword [esp + 0x1c], ecx
test eax, 0x20000000
je 0x4e7086
mov eax, dword [esp + 0x18]
mov ecx, dword [esp + 0x20]
mov dword [esp + 0x18], ecx
mov dword [esp + 0x20], eax
fld dword [ebp + 0xc]
fld st(0)
call fcn.005c6e00
fld dword [ebp + 0x10]
fld st(0)
mov dword [esp + 0x24], eax
call fcn.005c6e00
fld dword [edi + 8]
fsub dword [edi]
mov dword [esp + 0x28], eax
fstp dword [esp + 0x10]
fld dword [esp + 0x10]
faddp st(2)
fxch st(1)
call fcn.005c6e00
fld dword [edi + 0xc]
fsub dword [edi + 4]
mov dword [esp + 0x2c], eax
fstp dword [esp + 0x10]
fadd dword [esp + 0x10]
call fcn.005c6e00
mov edx, dword [vtable.CCriticalSection.0]
mov dword [esp + 0x30], eax
mov eax, dword [edx + 8]
mov ecx, 0x689d64
mov dword [esp + 0x10], ecx
call eax
mov esi, dword [esp + 0x34]
push 2
mov dword [esp + 0x108], 0
mov eax, dword [esi + 0x60]
mov ecx, dword [0x69456c]
mov edx, dword [ecx]
lea edi, [esp + 0x28]
push edi
push eax
lea eax, [esp + 0x20]
push eax
mov eax, dword [ebx + 0x60]
push eax
push ecx
mov ecx, dword [edx + 0x88]
call ecx
test eax, eax
jns 0x4e7166
mov eax, dword [esi + 0x60]
mov ecx, dword [0x69456c]
mov edx, dword [ecx]
push 1
push edi
push eax
lea eax, [esp + 0x20]
push eax
mov eax, dword [ebx + 0x60]
push eax
push ecx
mov ecx, dword [edx + 0x88]
call ecx
test eax, eax
jns 0x4e7166
mov esi, dword [esi + 0x60]
mov eax, dword [0x69456c]
mov edx, dword [eax]
mov edx, dword [edx + 0x88]
push 0
mov ecx, edi
push ecx
push esi
lea ecx, [esp + 0x20]
push ecx
mov ecx, dword [ebx + 0x60]
push ecx
push eax
call edx
mov dword [esp + 0x104], 0xffffffff
mov eax, dword [vtable.CCriticalSection.0]
mov edx, dword [eax + 0xc]
mov ecx, 0x689d64
call edx
mov ecx, dword [esp + 0xfc]
mov dword fs:[0], ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 0x18
lea eax, [esp + 0x38]
push eax
call fcn.004d3580
lea ecx, [esp + 0x98]
push ecx
mov edi, ebx
mov dword [esp + 0x108], 1
call fcn.004d3580
fld dword [ebp + 0x10]
mov ecx, dword [ebp + 0x1c]
push ecx
mov ecx, dword [ebp + 0x18]
push ecx
mov ecx, dword [ebp + 0x14]
push ecx
mov byte [esp + 0x110], 2
mov edx, dword [eax]
mov edx, dword [edx + 0x28]
sub esp, 8
fstp dword [esp + 4]
lea ecx, [esp + 0x4c]
fld dword [ebp + 0xc]
fstp dword [esp]
push ecx
mov ecx, eax
call edx
mov esi, vtable.CMemorySurfaceSupport.0
mov dword [esp + 0x98], esi
mov byte [esp + 0x104], 3
mov ecx, dword [esp + 0xf4]
xor edi, edi
cmp ecx, edi
je 0x4e7218
mov eax, dword [ecx]
mov edx, dword [eax + 0xfc]
call edx
lea ecx, [esp + 0x98]
mov dword [esp + 0xb0], edi
mov byte [esp + 0x104], 1
call fcn.004ec5b0
mov dword [esp + 0x38], esi
mov dword [esp + 0x104], 4
mov ecx, dword [esp + 0x94]
cmp ecx, edi
je 0x4e7257
mov eax, dword [ecx]
mov edx, dword [eax + 0xfc]
call edx
lea ecx, [esp + 0x38]
mov dword [esp + 0x50], edi
mov dword [esp + 0x104], 0xffffffff
call fcn.004ec5b0
mov ecx, dword [esp + 0xfc]
pop edi
pop esi
mov dword fs:[0], ecx
pop ebx
mov esp, ebp
pop ebp
ret 0x18