Function at 0x10072540
Capabilities:
Access peb ldr_data

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
sub esp, 0x19c
push ebx
push esi
mov esi, dword [ebp + 0xc]
mov ebx, ecx
push edi
mov edi, dword [ebp + 8]
mov ecx, dword [esi + 0x10]
mov eax, dword [ecx + 0xc]
mov dword [ebx + 0x28], edi
test eax, eax
je 0x100725cf
or byte [ebx + 0x1c], 8
mov esi, dword [ecx + 0xc]
mov ecx, dword [0x11d0c5b8]
mov eax, dword fs:[0x2c]
mov eax, dword [eax + ecx*4]
mov edi, dword [eax + 0x10]
add edi, 0x7a80
push edi
call dword [sym.imp.KERNEL32.dll_EnterCriticalSection]
mov eax, dword [ebp + 8]
push ebx
push ecx
push 0x440000
push 0
push 0
push 8
push 0
push 1
push 1
push eax
push eax
push 0
push esi
lea eax, [ebx + 0x30]
mov ecx, edi
push eax
call fcn.10052080
push edi
mov esi, eax
call dword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
test esi, esi
jns 0x1007288e
xor al, al
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 0x14
mov eax, dword [esi]
cmp eax, 0x65
jne 0x10072613
movzx ecx, word [ebx + 0x1e]
mov edx, ecx
test cx, cx
jne 0x100725ef
mov eax, 2
mov word [ebx + 0x1e], ax
movzx ecx, ax
jmp 0x1007264d
mov eax, edx
cmp edx, 2
je 0x1007260e
mov eax, 2
mov ecx, ebx
mov word [ebx + 0x1e], ax
call fcn.10072990
and byte [ebx + 0x1d], 0xfd
movzx eax, word [ebx + 0x1e]
movzx ecx, ax
jmp 0x1007264d
cmp eax, 0x66
jne 0x100725c4
movzx ecx, word [ebx + 0x1e]
mov eax, ecx
test cx, cx
jne 0x10072630
mov eax, 4
mov word [ebx + 0x1e], ax
mov ecx, eax
jmp 0x1007264d
cmp eax, 4
je 0x1007264d
mov eax, 4
mov ecx, ebx
mov word [ebx + 0x1e], ax
call fcn.10072990
and byte [ebx + 0x1d], 0xfd
movzx ecx, word [ebx + 0x1e]
test byte [esi + 0x30], 4
je 0x10072657
or byte [ebx + 0x1c], 8
mov eax, dword [esi + 0x30]
xor edx, edx
shr eax, 7
not al
movzx ecx, cx
and al, 1
mov dword [esp + 0x18], 0x78000000
movzx eax, al
push eax
mov al, byte [ebx + 0x1c]
shr al, 3
and al, 1
mov dword [esp + 0x18], 8
movzx eax, al
push eax
mov eax, edi
mov dword [esp + 0x24], 8
div ecx
mov ecx, dword [ebx + 8]
push 1
push eax
lea eax, [esp + 0x28]
add ecx, 0x13c0
push eax
lea eax, [esp + 0x30]
push eax
lea eax, [esp + 0x2c]
push eax
call fcn.10133e20
mov edi, dword [esp + 0x1c]
cmp edi, 1
jne 0x100726bf
or byte [ebx + 0x1c], 0x10
push dword [esp + 0x18]
mov eax, dword [ebp + 8]
lea ecx, [esp + 0x24]
push dword [esp + 0x18]
push 1
push eax
push eax
call fcn.10025350
mov edx, dword [esi + 0x30]
mov ecx, edx
mov al, byte [esp + 0x8e]
shr ecx, 7
or byte [esp + 0x8c], 8
shl cl, 2
xor cl, al
shr edx, 0xb
and cl, 4
shl dl, 4
xor dl, byte [esp + 0x91]
xor al, cl
mov byte [esp + 0x8e], al
and dl, 0x10
mov eax, dword [esp + 0x80]
xor dl, byte [esp + 0x91]
and eax, 0xffffff
shl edi, 0x18
or edi, eax
mov byte [esp + 0x91], dl
mov eax, dword [esi + 0x2c]
mov dword [esp + 0xe0], eax
mov eax, dword [ebp + 0x10]
shr dl, 2
xor dl, byte [ebx + 0x1d]
and dl, 4
mov dword [esp + 0xe8], 0x100
movups xmm0, xmmword [eax]
mov dword [esp + 0x80], edi
movups xmmword [esp + 0x134], xmm0
movups xmm0, xmmword [eax + 0x10]
xor byte [ebx + 0x1d], dl
mov eax, dword [esi + 0x30]
movups xmmword [esp + 0x144], xmm0
test eax, 0x800
je 0x1007278e
xorps xmm0, xmm0
mov dword [esp + 0xe8], 0x8100
movlpd qword [esp + 0x6c], xmm0
mov ecx, dword [0x11d0c5b8]
shr eax, 7
test al, 1
jne 0x100727d1
mov edx, dword fs:[0x2c]
mov eax, dword [edx + ecx*4]
mov eax, dword [eax + 0x10]
cmp dword [eax + 0x7c58], 1
jne 0x100727c8
test byte [eax + 0x7c5c], 1
je 0x100727c8
mov al, byte [esp + 0x90]
or al, 0x10
jmp 0x100727da
mov al, byte [esp + 0x90]
jmp 0x100727da
mov al, byte [esp + 0x90]
or al, 8
or al, 0x80
mov dword [esp + 0x14], 0x800000
mov byte [esp + 0x90], al
mov eax, dword fs:[0x2c]
mov eax, dword [eax + ecx*4]
mov esi, dword [eax + 0x10]
cmp dword [esi + 0x2d0], 0x2000
jb 0x1007281c
and edi, 0xff000000
cmp edi, 0x1000000
jne 0x1007281c
mov dword [esp + 0x14], 0xc00000
add esi, 0x7a80
push esi
call dword [sym.imp.KERNEL32.dll_EnterCriticalSection]
push ebx
push ecx
lea eax, [esp + 0x20]
mov ecx, esi
push eax
push 0
push dword [esp + 0x24]
lea eax, [esp + 0x34]
push eax
lea eax, [ebx + 0x30]
push eax
call fcn.10050a30
push esi
mov edi, eax
call dword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
test edi, edi
jns 0x1007288a
mov eax, dword [0x11d0c5b8]
mov edx, dword fs:[0x2c]
mov esi, dword [edx + eax*4]
cmp byte [esi + 8], 0
jne 0x10072870
call fcn.10450c0b
mov eax, dword [esi + 0x10]
mov eax, dword [eax + 0xbe2c]
mov dword [eax + 8], edi
xor al, al
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 0x14
or byte [ebx + 0x58], 2
pop edi
pop esi
mov al, 1
pop ebx
mov esp, ebp
pop ebp
ret 0x14