Function at 0x56ed00
Capabilities:
Access peb ldr_data
Get process heap flags

Disassembly:
sub esp, 0x28
push ebx
push ebp
push esi
push edi
lea eax, [esp + 0x14]
mov dword [esp + 0x20], edx
mov esi, ecx
mov dword [esp + 0x14], 0
push eax
mov ebp, 0x80004005
mov dword [esp + 0x38], esi
push 0x6230c8
mov edx, str.Windows.System.Profile.SystemIdentification
mov dword [esp + 0x20], 0
mov ecx, str.Windows.System.Profile.SystemId.dll
mov dword [esp + 0x24], ebp
xor bl, bl
mov dword [esp + 0x34], 0
mov dword [esp + 0x38], 0
call fcn.004fd120
test eax, eax
jns 0x56ed66
lfence
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x28
ret 4
mov esi, dword [esi + 8]
lea eax, [esp + 0x18]
mov edi, dword [0x635a90]
push eax
push 0xe
push esi
call dword [sym.imp.ntdll.dll_NtOpenProcessToken]
nop dword [eax]
cmp eax, 0xc0000022
jne 0x56ed9b
cmp edi, 5
jne 0x56edb2
lea eax, [esp + 0x18]
mov ecx, esi
push eax
lea edx, [edi + 9]
call fcn.005248c0
test eax, eax
js 0x56edb2
push dword [esp + 0x18]
push 0xfffffffffffffffe
call sym.SystemInformer.exe_Ordinal_1551
mov ebx, eax
shr ebx, 0x1f
xor bl, 1
mov eax, dword [esp + 0x14]
mov esi, dword [eax]
mov eax, dword fs:[0x18]
mov eax, dword [eax + 0x30]
push dword [eax + 0xa0]
call dword [sym.imp.ntdll.dll_RtlEnterCriticalSection]
mov eax, dword fs:[0x18]
mov eax, dword [eax + 0x30]
mov edi, dword [eax + 0xc]
add edi, 0xc
mov ecx, dword [edi]
cmp ecx, edi
je 0x56edfa
mov edx, dword [ecx + 0x18]
cmp esi, edx
jb 0x56edf4
mov eax, dword [ecx + 0x20]
add eax, edx
cmp esi, eax
jb 0x56ee1c
mov ecx, dword [ecx]
cmp ecx, edi
jne 0x56ede4
xor esi, esi
mov eax, dword fs:[0x18]
mov eax, dword [eax + 0x30]
push dword [eax + 0xa0]
call dword [sym.imp.ntdll.dll_RtlLeaveCriticalSection]
test esi, esi
jne 0x56ee28
mov edi, ebp
jmp 0x56ef7f
nop dword [eax]
test ecx, ecx
je 0x56edfa
mov esi, edx
jmp 0x56edfc
push ecx
push 0x56ec50
push 0x622dc4
mov edx, str.api_ms_win_core_processthreads_l1_1_0.dll
mov ecx, esi
call fcn.00529840
nop
test eax, eax
jns 0x56ee4b
mov edi, ebp
jmp 0x56ef7f
push ecx
push 0x56eca0
push 0x622e04
mov edx, str.api_ms_win_core_processthreads_l1_1_0.dll
mov ecx, esi
lfence
call fcn.00529840
test eax, eax
jns 0x56ee70
mov edi, ebp
jmp 0x56ef7f
push ecx
push 0x56ec70
push str.GetCurrentThread
mov edx, str.api_ms_win_core_processthreads_l1_1_0.dll
mov ecx, esi
lfence
call fcn.00529840
test eax, eax
jns 0x56ee95
mov edi, ebp
jmp 0x56ef7f
push ecx
push 0x56ecc0
push 0x622e2c
mov edx, str.api_ms_win_core_processthreads_l1_1_0.dll
mov ecx, esi
lfence
call fcn.00529840
test eax, eax
jns 0x56eeba
mov edi, ebp
jmp 0x56ef7f
push ecx
push 0x56ece0
push 0x622e40
mov edx, str.api_ms_win_core_handle_l1_1_0.dll
mov ecx, esi
lfence
call fcn.00529840
test eax, eax
jns 0x56eedf
mov edi, ebp
jmp 0x56ef7f
mov ecx, dword [esp + 0x34]
mov dl, 1
call fcn.0056eba0
test eax, eax
jne 0x56eef5
mov edi, ebp
jmp 0x56ef7f
mov eax, dword [esp + 0x14]
lea edx, [esp + 0x24]
push edx
push eax
xor edi, edi
mov ecx, dword [eax]
mov esi, dword [ecx + 0x18]
mov ecx, esi
call dword [0x5a9914]
call esi
mov dword [esp + 0x1c], eax
test eax, eax
jne 0x56ef3d
mov ecx, dword ds:[esp + 0x24]
call fcn.0056e8e0
mov dword [esp + 0x2c], eax
mov eax, dword [esp + 0x24]
push eax
mov ecx, dword [eax]
mov esi, dword [ecx + 8]
mov ecx, esi
call dword [0x5a9914]
call esi
mov eax, dword [esp + 0x14]
lea ecx, [esp + 0x28]
push ecx
push 0
push eax
mov esi, dword [eax]
mov esi, dword [esi + 0x1c]
mov ecx, esi
call dword [0x5a9914]
call esi
mov ebp, eax
test ebp, ebp
jne 0x56ef7f
mov ecx, dword [esp + 0x28]
call fcn.0056e8e0
mov ecx, dword [esp + 0x28]
push ecx
mov dword [esp + 0x34], eax
mov edx, dword [ecx]
mov esi, dword [edx + 8]
mov ecx, esi
call dword [0x5a9914]
call esi
mov ecx, dword [esp + 0x14]
test ecx, ecx
je 0x56ef9f
mov eax, dword [ecx]
push ecx
mov esi, dword [eax + 8]
mov ecx, esi
call dword [0x5a9914]
call esi
mov dword [esp + 0x14], 0
mov eax, dword [esp + 0x18]
test eax, eax
je 0x56efd9
test bl, bl
je 0x56efca
push 4
lea eax, [esp + 0x38]
mov dword [esp + 0x38], 0
push eax
push 5
push 0xfffffffffffffffe
call dword [sym.imp.ntdll.dll_NtSetInformationThread]
mov eax, dword [esp + 0x18]
push eax
call dword [sym.imp.ntdll.dll_NtClose]
mov dword [esp + 0x18], 0
test byte [0x6312bc], 1
jne 0x56f019
mov esi, 0x6312bc
lock bts dword [esi], 0x1f
setb al
test al, al
jne 0x56f007
call fcn.00504840
mov ecx, esi
mov dword [0x636014], eax
call sym.SystemInformer.exe_Ordinal_1358
jmp 0x56f019
test byte [0x6312bc], 1
jne 0x56f019
xor edx, edx
mov ecx, esi
call sym.SystemInformer.exe_Ordinal_1388
mov ecx, dword [0x636014]
nop
cmp ecx, 0xffffffff
je 0x56f02c
xor edx, edx
call fcn.00504980
mov edx, dword [esp + 0x20]
mov eax, ebp
mov esi, dword [esp + 0x3c]
mov ecx, dword [esp + 0x1c]
shr eax, 0x1c
and eax, 1
mov dword [edx], 0
mov dword [esi], 0
test ecx, ecx
jne 0x56f058
mov ecx, dword [esp + 0x2c]
mov dword [edx], ecx
jmp 0x56f09f
mov ebx, eax
test eax, eax
je 0x56f07e
push 0
call fcn.00524020
push eax
call sym.SystemInformer.exe_Ordinal_1662
mov ecx, eax
mov eax, dword [esp + 0x20]
mov dword [eax], ecx
test ecx, ecx
je 0x56f07e
cmp dword [ecx], 0
mov eax, ebx
jne 0x56f09f
mov eax, dword [esp + 0x1c]
movzx eax, ax
test eax, eax
jne 0x56f091
push eax
call sym.SystemInformer.exe_Ordinal_1660
jmp 0x56f097
push eax
call sym.SystemInformer.exe_Ordinal_1670
mov ecx, dword [esp + 0x20]
mov dword [ecx], eax
mov eax, ebx
nop
test ebp, ebp
jne 0x56f0b6
mov eax, dword [esp + 0x30]
mov dword [esi], eax
mov eax, edi
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x28
ret 4
test eax, eax
je 0x56f0cd
push 0
mov ecx, ebp
call fcn.00524020
push eax
call sym.SystemInformer.exe_Ordinal_1662
mov dword [esi], eax
mov eax, dword [esi]
test eax, eax
je 0x56f0d8
cmp dword [eax], 0
jne 0x56f0fb
movzx eax, bp
test eax, eax
jne 0x56f0f3
push eax
call sym.SystemInformer.exe_Ordinal_1660
mov dword [esi], eax
mov eax, edi
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x28
ret 4
push eax
call sym.SystemInformer.exe_Ordinal_1670
mov dword [esi], eax
mov eax, edi
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x28
ret 4