Function at 0x7d272ac0
Capabilities:
Access peb ldr_data

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
sub esp, 0x20
mov eax, 1
push ebx
push ebp
push esi
push edi
lock xadd dword [0x7d2de7d0], eax
inc eax
cmp eax, 1
jne 0x7d272dde
mov ebp, dword [sym.imp.ntdll.dll_LdrQueryProcessModuleInformation]
mov ebx, 0x8000
xor esi, esi
push ebx
call fcn.7d2217b2
lea ecx, [esp + 0x24]
mov dword [esp + 0x10], eax
push ecx
push ebx
push eax
call ebp
mov edi, eax
test edi, edi
jns 0x7d272b2e
mov ebx, dword [esp + 0x10]
push ebx
call fcn.7d221537
cmp edi, 0xc0000004
jne 0x7d272b36
mov ebx, dword [esp + 0x24]
inc esi
add ebx, 0x400
cmp esi, 6
jb 0x7d272af1
jmp 0x7d272b36
mov edx, dword [esp + 0x10]
test edx, edx
jne 0x7d272b51
push edi
push str.LoadedModules___08X_
push 0x89d
call sym.SbieDll.dll_SbieApi_Log
add esp, 0xc
pop edi
pop esi
pop ebp
pop ebx
mov esp, ebp
pop ebp
ret
mov ecx, dword [0x7d2de7b4]
mov dword [esp + 0x18], ecx
test ecx, ecx
je 0x7d272c15
cmp dword [ecx], 0
mov dword [esp + 0x1c], 0
jbe 0x7d272c15
mov esi, dword [esp + 0x14]
lea ebx, [ecx + 0x1e]
nop dword [eax + eax]
mov ebp, dword [edx]
xor edi, edi
test ebp, ebp
je 0x7d272bdc
mov ecx, dword [ebx - 0x12]
lea esi, [edx + 0x20]
nop
lea eax, [esi - 0x1c]
mov dword [esp + 0x14], eax
cmp ecx, dword [esi - 0x14]
jne 0x7d272bcd
mov eax, esi
lea ecx, [ebx + 2]
mov dl, byte [ecx]
cmp dl, byte [eax]
jne 0x7d272bc1
test dl, dl
je 0x7d272bbd
mov dl, byte [ecx + 1]
cmp dl, byte [eax + 1]
jne 0x7d272bc1
add ecx, 2
add eax, 2
test dl, dl
jne 0x7d272ba1
xor eax, eax
jmp 0x7d272bc6
sbb eax, eax
or eax, 1
test eax, eax
je 0x7d272bf2
mov ecx, dword [ebx - 0x12]
inc edi
add esi, 0x11c
cmp edi, ebp
jb 0x7d272b90
mov esi, dword [esp + 0x14]
movzx eax, word [ebx]
push 0
push dword [esi + 8]
add eax, 2
add eax, ebx
push eax
call dword [0x7d2de794]
jmp 0x7d272bf6
mov esi, dword [esp + 0x14]
mov eax, dword [esp + 0x1c]
add ebx, 0x11c
mov ecx, dword [esp + 0x18]
inc eax
mov edx, dword [esp + 0x10]
mov dword [esp + 0x1c], eax
cmp eax, dword [ecx]
jb 0x7d272b80
xor ebp, ebp
mov dword [esp + 0x14], ebp
cmp dword [edx], ebp
jbe 0x7d272d99
lea edi, [ebp + 0x2a]
imul ebx, ebp, 0x11c
add ebx, edx
test ecx, ecx
je 0x7d272c94
mov ebp, dword [ecx]
xor edi, edi
test ebp, ebp
je 0x7d272c8b
mov eax, dword [ebx + 0xc]
lea esi, [ecx + 0x20]
cmp dword [esi - 0x14], eax
jne 0x7d272c80
lea ecx, [ebx + 0x20]
mov eax, esi
nop word [eax + eax]
mov dl, byte [eax]
cmp dl, byte [ecx]
jne 0x7d272c70
test dl, dl
je 0x7d272c6c
mov dl, byte [eax + 1]
cmp dl, byte [ecx + 1]
jne 0x7d272c70
add eax, 2
add ecx, 2
test dl, dl
jne 0x7d272c50
xor eax, eax
jmp 0x7d272c75
sbb eax, eax
or eax, 1
test eax, eax
je 0x7d272d7b
mov eax, dword [ebx + 0xc]
inc edi
add esi, 0x11c
cmp edi, ebp
jb 0x7d272c40
mov ebp, dword [esp + 0x14]
mov edi, 0x2a
cmp dword [0x7d2b735c], 0x20d0
mov edx, dword [ebx + 0xc]
jb 0x7d272cc4
mov eax, dword fs:[0x30]
mov eax, dword [eax + 0xc]
mov ecx, dword [eax + 0xc]
mov eax, dword [ecx]
cmp eax, ecx
je 0x7d272cc4
cmp dword [eax + 0x18], edx
je 0x7d272d61
mov eax, dword [eax]
cmp eax, ecx
jne 0x7d272cb5
xor esi, esi
lea eax, [ebx + 0x20]
push eax
lea eax, [esp + 0x2c]
push eax
call dword [sym.imp.ntdll.dll_RtlInitString]
push 1
lea eax, [esp + 0x2c]
push eax
lea eax, [esp + 0x24]
push eax
call dword [sym.imp.ntdll.dll_RtlAnsiStringToUnicodeString]
mov eax, dword [esp + 0x20]
test ebp, ebp
jne 0x7d272cfb
cmp word [eax], bp
je 0x7d272cfb
mov word [eax], di
mov eax, dword [esp + 0x20]
push eax
call sub.ntdll.dll__wcslwr
add esp, 4
push dword [esp + 0x20]
push 9
call sym.SbieDll.dll_SbieApi_MonitorPut
lea eax, [esp + 0x1c]
push eax
call dword [sym.imp.ntdll.dll_RtlFreeUnicodeString]
movzx eax, word [ebx + 0x1e]
push 1
push dword [ebx + 0xc]
add eax, 0x20
add eax, ebx
push eax
call dword [0x7d2de794]
test esi, esi
je 0x7d272d7f
cmp dword [0x7d2b735c], 0x20d0
mov edx, dword [ebx + 0xc]
jb 0x7d272d7f
mov eax, dword fs:[0x30]
mov eax, dword [eax + 0xc]
mov ecx, dword [eax + 0xc]
mov eax, dword [ecx]
cmp eax, ecx
je 0x7d272d7f
cmp dword [eax + 0x18], edx
je 0x7d272d73
mov eax, dword [eax]
cmp eax, ecx
jne 0x7d272d54
jmp 0x7d272d7f
mov eax, dword [eax + 0x50]
mov esi, dword [eax + 0x20]
mov dword [eax + 0x20], 9
jmp 0x7d272cc6
mov eax, dword [eax + 0x50]
mov dword [eax + 0x20], esi
jmp 0x7d272d7f
mov ebp, dword [esp + 0x14]
mov edx, dword [esp + 0x10]
inc ebp
mov ecx, dword [esp + 0x18]
mov edi, 0x2a
mov dword [esp + 0x14], ebp
cmp ebp, dword [edx]
jb 0x7d272c26
push 0x7d2de79c
call dword [sym.imp.KERNEL32.dll_EnterCriticalSection]
mov ebx, dword [esp + 0x10]
push 0x7d2de79c
mov dword [0x7d2de7b4], ebx
call dword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
mov eax, dword [esp + 0x18]
test eax, eax
je 0x7d272dcb
cmp eax, ebx
je 0x7d272dcb
push eax
call fcn.7d221537
xor eax, eax
mov ecx, 0x7d2de7d0
xchg dword [ecx], eax
cmp eax, 1
jle 0x7d272dde
call fcn.7d272ac0
pop edi
pop esi
pop ebp
pop ebx
mov esp, ebp
pop ebp
ret