Function at 0x56ed20
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 0x623108
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.004fd240
test eax, eax
jns 0x56ed86
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 [0x635a54]
push eax
push 0xe
push esi
call dword [sym.imp.ntdll.dll_NtOpenProcessToken]
nop dword [eax]
cmp eax, 0xc0000022
jne 0x56edbb
cmp edi, 5
jne 0x56edd2
lea eax, [esp + 0x18]
mov ecx, esi
push eax
lea edx, [edi + 9]
call fcn.00524980
test eax, eax
js 0x56edd2
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 0x56ee1a
mov edx, dword [ecx + 0x18]
cmp esi, edx
jb 0x56ee14
mov eax, dword [ecx + 0x20]
add eax, edx
cmp esi, eax
jb 0x56ee3c
mov ecx, dword [ecx]
cmp ecx, edi
jne 0x56ee04
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 0x56ee48
mov edi, ebp
jmp 0x56ef9f
nop dword [eax]
test ecx, ecx
je 0x56ee1a
mov esi, edx
jmp 0x56ee1c
push ecx
push 0x56ec70
push 0x622e04
mov edx, str.api_ms_win_core_processthreads_l1_1_0.dll
mov ecx, esi
call fcn.00529900
nop
test eax, eax
jns 0x56ee6b
mov edi, ebp
jmp 0x56ef9f
push ecx
push 0x56ecc0
push 0x622e44
mov edx, str.api_ms_win_core_processthreads_l1_1_0.dll
mov ecx, esi
lfence
call fcn.00529900
test eax, eax
jns 0x56ee90
mov edi, ebp
jmp 0x56ef9f
push ecx
push 0x56ec90
push str.GetCurrentThread
mov edx, str.api_ms_win_core_processthreads_l1_1_0.dll
mov ecx, esi
lfence
call fcn.00529900
test eax, eax
jns 0x56eeb5
mov edi, ebp
jmp 0x56ef9f
push ecx
push 0x56ece0
push 0x622e6c
mov edx, str.api_ms_win_core_processthreads_l1_1_0.dll
mov ecx, esi
lfence
call fcn.00529900
test eax, eax
jns 0x56eeda
mov edi, ebp
jmp 0x56ef9f
push ecx
push 0x56ed00
push 0x622e80
mov edx, str.api_ms_win_core_handle_l1_1_0.dll
mov ecx, esi
lfence
call fcn.00529900
test eax, eax
jns 0x56eeff
mov edi, ebp
jmp 0x56ef9f
mov ecx, dword [esp + 0x34]
mov dl, 1
call fcn.0056ebc0
test eax, eax
jne 0x56ef15
mov edi, ebp
jmp 0x56ef9f
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 0x56ef5d
mov ecx, dword ds:[esp + 0x24]
call fcn.0056e900
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 0x56ef9f
mov ecx, dword [esp + 0x28]
call fcn.0056e900
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 0x56efbf
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 0x56eff9
test bl, bl
je 0x56efea
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 0x56f039
mov esi, 0x6312bc
lock bts dword [esi], 0x1f
setb al
test al, al
jne 0x56f027
call fcn.00504920
mov ecx, esi
mov dword [0x635ff0], eax
call sym.SystemInformer.exe_Ordinal_1358
jmp 0x56f039
test byte [0x6312bc], 1
jne 0x56f039
xor edx, edx
mov ecx, esi
call sym.SystemInformer.exe_Ordinal_1388
mov ecx, dword [0x635ff0]
nop
cmp ecx, 0xffffffff
je 0x56f04c
xor edx, edx
call fcn.00504a60
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 0x56f078
mov ecx, dword [esp + 0x2c]
mov dword [edx], ecx
jmp 0x56f0bf
mov ebx, eax
test eax, eax
je 0x56f09e
push 0
call fcn.005240e0
push eax
call sym.SystemInformer.exe_Ordinal_1662
mov ecx, eax
mov eax, dword [esp + 0x20]
mov dword [eax], ecx
test ecx, ecx
je 0x56f09e
cmp dword [ecx], 0
mov eax, ebx
jne 0x56f0bf
mov eax, dword [esp + 0x1c]
movzx eax, ax
test eax, eax
jne 0x56f0b1
push eax
call sym.SystemInformer.exe_Ordinal_1660
jmp 0x56f0b7
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 0x56f0d6
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 0x56f0ed
push 0
mov ecx, ebp
call fcn.005240e0
push eax
call sym.SystemInformer.exe_Ordinal_1662
mov dword [esi], eax
mov eax, dword [esi]
test eax, eax
je 0x56f0f8
cmp dword [eax], 0
jne 0x56f11b
movzx eax, bp
test eax, eax
jne 0x56f113
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