Function at 0x10006030
Capabilities:
Enumerate gui resources
Terminate process

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
push 0xffffffffffffffff
push 0x1004e598
mov eax, dword fs:[0]
push eax
sub esp, 0x20
push ebx
push esi
push edi
mov eax, dword [0x10062da0]
xor eax, esp
push eax
lea eax, [esp + 0x30]
mov dword fs:[0], eax
mov esi, ecx
mov dword [esp + 0x20], esi
push str.CEdpEDiskCtrlInterface::Logoff_ENTER_
xor ebx, ebx
push ebx
push 0x5f0
push str.CEdpEDiskCtrlInterface::Logoff
mov ecx, str..EdpEDiskCtrlInterface.cpp
call fcn.10010760
add esp, 0x10
push ebx
lea ecx, [esi + 0x180]
push 0x1005571a
mov dword [esp + 0x24], ecx
call fcn.10002b90
mov edi, 1
mov dword [esp + 0x18], edi
call fcn.10025867
xor ecx, ecx
cmp eax, ebx
setne cl
cmp ecx, ebx
jne 0x100060b9
push 0x80004005
call fcn.10002d80
mov edx, dword [eax]
mov ecx, eax
mov eax, dword [edx + 0xc]
call eax
add eax, 0x10
mov dword [esp + 0x14], eax
mov dword [esp + 0x38], ebx
movsx eax, byte [0x1006a1a4]
sub eax, 0x41
push eax
push 0x1001e1d0
mov dword [esp + 0x2c], ebx
mov dword [esp + 0x30], ebx
mov dword [0x100676b8], ebx
call dword [sym.imp.USER32.dll_EnumWindows]
push str.CEdpEDiskCtrlInterface::Logoff_11_
push ebx
push 0x5f8
push str.CEdpEDiskCtrlInterface::Logoff
mov ecx, str..EdpEDiskCtrlInterface.cpp
call fcn.10010760
add esp, 0x10
mov edi, edi
mov al, byte [edi + 0x1006a1a4]
cmp al, bl
je 0x100061a7
movsx eax, al
sub eax, 0x41
push eax
push 0x1001e1d0
mov dword [0x100676b8], ebx
call dword [sym.imp.USER32.dll_EnumWindows]
movzx ecx, byte [edi + 0x1006a1a4]
push ecx
lea esi, [esp + 0x28]
call fcn.1001e0b0
add esp, 4
test eax, eax
je 0x10006198
mov edx, dword [esp + 0x24]
cmp edx, dword [edi*8 + 0x1006a1b0]
jne 0x10006168
mov eax, dword [esp + 0x28]
cmp eax, dword [edi*8 + 0x1006a1b4]
je 0x10006198
cmp edi, 1
jne 0x1000617e
cmp dword [0x1006b344], 2
jne 0x10006198
mov bl, byte [0x1006a1a5]
jmp 0x10006191
cmp edi, 2
jne 0x10006198
cmp dword [0x1006b348], edi
jne 0x10006198
mov bl, byte [0x1006a1a6]
call fcn.1001e2e0
xor ebx, ebx
push 0x1f4
call dword [sym.imp.KERNEL32.dll_Sleep]
mov esi, dword [esp + 0x20]
inc edi
cmp edi, 3
jl 0x10006110
push str.CEdpEDiskCtrlInterface::Logoff_22_
push ebx
push 0x613
push str.CEdpEDiskCtrlInterface::Logoff
mov ecx, str..EdpEDiskCtrlInterface.cpp
call fcn.10010760
add esp, 0x10
mov ecx, esi
call fcn.100066a0
push str.CEdpEDiskCtrlInterface::Logoff_33_
push ebx
push 0x615
push str.CEdpEDiskCtrlInterface::Logoff
mov ecx, str..EdpEDiskCtrlInterface.cpp
call fcn.10010760
add esp, 0x10
call fcn.1001e420
cmp byte [ebp + 8], bl
jne 0x10006281
cmp eax, ebx
jbe 0x10006281
push eax
call fcn.1000c840
add esp, 4
test eax, eax
je 0x1000627d
push 0x10056cfc
push 0x10056d08
lea ecx, [esp + 0x1c]
push 0x10056d10
push ecx
call fcn.100027b0
mov ecx, dword [esp + 0x2c]
add esp, 0x10
lea edx, [esp + 0x14]
push edx
call fcn.1000bb20
mov dword [esp + 0x38], 0xffffffff
mov eax, dword [esp + 0x14]
add eax, 0xfffffff0
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x10006263
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
mov eax, 6
mov ecx, dword [esp + 0x30]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 4
mov byte [ebp + 8], 1
push str.CEdpEDiskCtrlInterface::Logoff_44_
push ebx
push 0x624
push str.CEdpEDiskCtrlInterface::Logoff
mov ecx, str..EdpEDiskCtrlInterface.cpp
call fcn.10010760
mov ecx, dword [ebp + 8]
add esp, 0x10
push ecx
mov ecx, 0x1006a1c8
call fcn.10018f50
mov ecx, str..EdpEDiskCtrlInterface.cpp
test al, al
jne 0x10006389
push str.g_edcControl.UserLogoff_Failed_
push 4
push 0x627
push str.CEdpEDiskCtrlInterface::Logoff
call fcn.10010760
add esp, 0x10
cmp dword [0x1006a1e4], 0x10
jb 0x100062ea
mov eax, dword [0x1006a1d0]
mov edx, eax
cmp eax, ebx
jne 0x100062ef
xor eax, eax
jmp 0x100062fd
mov edx, 0x1006a1d0
mov eax, edx
lea esi, [eax + 1]
mov cl, byte [eax]
inc eax
cmp cl, bl
jne 0x100062f4
sub eax, esi
push eax
push edx
lea ecx, [esp + 0x1c]
call fcn.10002b90
mov eax, dword [esp + 0x14]
cmp dword [eax - 4], 1
jle 0x1000631f
mov edx, dword [eax - 0xc]
push edx
lea ecx, [esp + 0x18]
call fcn.10002a10
mov eax, dword [esp + 0x14]
push eax
push ebx
push 0x629
push str.CEdpEDiskCtrlInterface::Logoff
mov ecx, str..EdpEDiskCtrlInterface.cpp
call fcn.10010760
add esp, 0x10
cmp byte [ebp + 8], bl
jne 0x10006375
push 0x10056cfc
push 0x10056d08
lea ecx, [esp + 0x1c]
push 0x10056d10
push ecx
call fcn.100027b0
mov ecx, dword [esp + 0x2c]
add esp, 0x10
lea edx, [esp + 0x14]
push edx
mov dword [esp + 0x1c], 6
call fcn.1000bb20
jmp 0x100063e0
mov ecx, dword [esp + 0x1c]
lea edx, [esp + 0x14]
push edx
mov dword [esp + 0x1c], ebx
call fcn.1000bb20
jmp 0x100063e0
push str.CEdpEDiskCtrlInterface::Logoff_55_
push ebx
push 0x63e
push str.CEdpEDiskCtrlInterface::Logoff
call fcn.10010760
mov cl, byte [0x1006a1a4]
xor eax, eax
lea edi, [esi + 0x7c]
add esp, 0x10
lea esi, [esp + 0x10]
mov byte [esp + 0x10], bl
mov word [esp + 0x11], ax
call fcn.100014b0
mov ecx, dword [esp + 0x20]
mov eax, dword [ecx + 0x184]
cmp eax, 4
jbe 0x100063e0
push eax
push ebx
push 1
call dword [sym.imp.KERNEL32.dll_OpenProcess]
push 4
push eax
call dword [sym.imp.KERNEL32.dll_TerminateProcess]
push str.CEdpEDiskCtrlInterface::Logoff_leave_
push ebx
push 0x644
push str.CEdpEDiskCtrlInterface::Logoff
mov ecx, str..EdpEDiskCtrlInterface.cpp
call fcn.10010760
mov dword [esp + 0x48], 0xffffffff
mov eax, dword [esp + 0x24]
add eax, 0xfffffff0
add esp, 0x10
lea edx, [eax + 0xc]
or ecx, 0xffffffff
lock xadd dword [edx], ecx
dec ecx
test ecx, ecx
jg 0x10006425
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
mov eax, dword [esp + 0x18]
mov ecx, dword [esp + 0x30]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 4