Function at 0x5923a0
Capabilities:
Access peb ldr_data

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
mov eax, dword fs:[0]
push 0xffffffffffffffff
push 0x5cec30
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 [0x692400]
jne 0x5923e4
test eax, eax
je 0x5923e4
call fcn.0058dd40
test byte [ebx + 0x38], 1
mov edi, dword [ebp + 8]
mov esi, 0x10000
je 0x5924a4
push 0
push 0x688584
push 0x6820e0
push 0
push edi
call fcn.0052e9f2
add esp, 0x14
test eax, eax
je 0x5924a4
test dword [eax + 0x38], esi
je 0x5924a4
mov ecx, dword [ebp + 0x18]
test cl, 2
je 0x59242f
cmp dword [0x6923f4], 0
je 0x5924a4
test ecx, 0x1000
je 0x592440
cmp dword [0x6923f0], 0
je 0x5924a4
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 0x688584
push 0x6820e0
push 0
push edi
call fcn.0052e9f2
add esp, 0x14
mov dword [esp + 0x34], eax
test dword [ebx + 0x38], esi
je 0x592637
test eax, eax
je 0x592637
test dword [eax + 0x38], esi
je 0x592637
lea ecx, [edi + 0x1c]
call fcn.0058d950
test al, al
je 0x59270f
mov edi, dword [ebp + 0x14]
lea esi, [esp + 0x14]
call fcn.00411b00
mov eax, dword [ebp + 0x18]
test eax, 0x10000000
je 0x59250f
mov ecx, dword [esp + 0x14]
mov edx, dword [esp + 0x1c]
mov dword [esp + 0x14], edx
mov dword [esp + 0x1c], ecx
test eax, 0x20000000
je 0x592526
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.0052e550
fld dword [ebp + 0x10]
fld st(0)
mov dword [esp + 0x24], eax
call fcn.0052e550
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.0052e550
fld dword [edi + 0xc]
fsub dword [edi + 4]
mov dword [esp + 0x2c], eax
fstp dword [esp + 0x10]
fadd dword [esp + 0x10]
call fcn.0052e550
mov edx, dword [vtable.CCriticalSection.0]
mov dword [esp + 0x30], eax
mov eax, dword [edx + 8]
mov ecx, 0x682824
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 [0x6923f8]
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 0x592606
mov eax, dword [esi + 0x60]
mov ecx, dword [0x6923f8]
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 0x592606
mov esi, dword [esi + 0x60]
mov eax, dword [0x6923f8]
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, 0x682824
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.00582030
lea ecx, [esp + 0x98]
push ecx
mov edi, ebx
mov dword [esp + 0x108], 1
call fcn.00582030
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 0x5926b8
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.0059bf80
mov dword [esp + 0x38], esi
mov dword [esp + 0x104], 4
mov ecx, dword [esp + 0x94]
cmp ecx, edi
je 0x5926f7
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.0059bf80
mov ecx, dword [esp + 0xfc]
pop edi
pop esi
mov dword fs:[0], ecx
pop ebx
mov esp, ebp
pop ebp
ret 0x18