Function at 0x403c30
Capabilities:
Access peb ldr_data
Get session information
Resolve function by parsing pe exports

Disassembly:
push ebx
mov ebx, esp
sub esp, 8
and esp, 0xfffffff8
add esp, 4
push ebp
mov ebp, dword [ebx + 4]
mov dword [esp + 4], ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x418205
mov eax, dword fs:[0]
push eax
push ebx
sub esp, 0x100
mov eax, dword [0x424014]
xor eax, ebp
mov dword [ebp - 0x14], eax
push esi
push edi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov edi, ecx
mov dword [ebp - 0x108], edi
mov eax, dword [ebx + 8]
push 0x3f4
mov dword [ebp - 0x10c], edi
mov esi, dword [sym.imp.USER32.dll_GetDlgItem]
push eax
mov dword [edi], eax
call esi
push 0x3f6
push dword [edi]
mov dword [edi + 4], eax
call esi
push 0x400
push dword [edi]
mov dword [edi + 8], eax
call esi
push 0x3f9
push dword [edi]
mov dword [edi + 0xc], eax
call esi
push 0x3fa
push dword [edi]
mov dword [edi + 0x10], eax
call esi
push 0x3fe
push dword [edi]
mov dword [edi + 0x14], eax
call esi
push 0x3fb
push dword [edi]
mov dword [edi + 0x18], eax
call esi
push 0x3ea
push dword [edi]
mov dword [edi + 0x1c], eax
call esi
push 0x3ed
push dword [edi]
mov dword [edi + 0x20], eax
call esi
push 0x3eb
push dword [edi]
mov dword [edi + 0x24], eax
call esi
push 0x3ec
push dword [edi]
mov dword [edi + 0x28], eax
call esi
push 0x3ee
push dword [edi]
mov dword [edi + 0x2c], eax
call esi
push 0x3fd
push dword [edi]
mov dword [edi + 0x30], eax
call esi
push 0x3fc
push dword [edi]
mov dword [edi + 0x34], eax
call esi
push 0x3f5
push dword [edi]
mov dword [edi + 0x38], eax
call esi
push 0x401
push dword [edi]
mov dword [edi + 0x3c], eax
call esi
push 0x3ff
push dword [edi]
mov dword [edi + 0x40], eax
call esi
push 0x404
push dword [edi]
mov dword [edi + 0x44], eax
call esi
push 0x402
push dword [edi]
mov dword [edi + 0x48], eax
call esi
mov dword [edi + 0x4c], eax
push 0x403
push dword [edi]
call esi
push 0x406
push dword [edi]
mov dword [edi + 0x50], eax
call esi
push 0x407
push dword [edi]
mov dword [edi + 0x54], eax
call esi
push 0x3f2
push dword [edi]
mov dword [edi + 0x58], eax
call esi
push 0x405
push dword [edi]
mov dword [edi + 0x5c], eax
call esi
mov dword [edi + 0x60], eax
xor esi, esi
lea eax, [ebp - 0x8c]
mov dword [ebp - 0x8c], esi
push eax
push 8
call dword [sym.imp.KERNEL32.dll_GetCurrentProcess]
push eax
call dword [sym.imp.ADVAPI32.dll_OpenProcessToken]
test eax, eax
je 0x403dfc
lea eax, [ebp - 0x18]
mov dword [ebp - 0x18], 4
push eax
push 4
lea eax, [ebp - 0x20]
push eax
push 0x14
push dword [ebp - 0x8c]
call dword [sym.imp.ADVAPI32.dll_GetTokenInformation]
push dword [ebp - 0x8c]
test eax, eax
cmovne esi, dword [ebp - 0x20]
call dword [sym.imp.KERNEL32.dll_CloseHandle]
test esi, esi
lea ecx, [edi + 0x7c]
setne al
mov byte [edi + 0x78], al
call fcn.00405890
lea eax, [ebp - 0x20]
mov dword [ebp - 4], 0
push eax
lea eax, [ebp - 0x8c]
mov dword [ebp - 0x8c], 0
push eax
push 0x18
push 0xffffffffffffffff
lea esi, [edi + 0xac]
mov dword [ebp - 0x20], 0
push 0
mov dword [ebp - 0x108], esi
call dword [sym.imp.WTSAPI32.dll_WTSQuerySessionInformationW]
test eax, eax
je 0x403f5c
mov eax, dword [ebp - 0x8c]
mov dword [ebp - 0x108], eax
test eax, eax
je 0x403f5c
lea edx, [eax + 0x82]
mov dword [ebp - 0x34], 0
mov ecx, edx
mov dword [ebp - 0x30], 7
xor eax, eax
mov word [ebp - 0x44], ax
lea eax, [ecx + 2]
mov dword [ebp - 0x18], eax
mov ax, word [ecx]
add ecx, 2
test ax, ax
jne 0x403e85
sub ecx, dword [ebp - 0x18]
sar ecx, 1
push ecx
push edx
lea ecx, [ebp - 0x44]
call fcn.00405170
mov edx, dword [ebp - 0x108]
add edx, 0x60
mov byte [ebp - 4], 1
mov ecx, edx
mov dword [ebp - 0x4c], 0
xor eax, eax
mov dword [ebp - 0x48], 7
mov word [ebp - 0x5c], ax
lea eax, [ecx + 2]
mov dword [ebp - 0x108], eax
nop dword [eax + eax]
mov ax, word [ecx]
add ecx, 2
test ax, ax
jne 0x403ed0
sub ecx, dword [ebp - 0x108]
sar ecx, 1
push ecx
push edx
lea ecx, [ebp - 0x5c]
call fcn.00405170
push dword [ebp - 0x8c]
call dword [sym.imp.WTSAPI32.dll_WTSFreeMemory]
movups xmm0, xmmword [ebp - 0x5c]
mov dword [esi + 0x10], 0
xor eax, eax
mov dword [esi + 0x14], 0
movups xmmword [esi], xmm0
movq xmm0, qword [ebp - 0x4c]
movq qword [esi + 0x10], xmm0
movups xmm0, xmmword [ebp - 0x44]
mov dword [esi + 0x28], 0
mov dword [esi + 0x2c], 0
movups xmmword [esi + 0x18], xmm0
mov dword [ebp - 0x4c], 0
movq xmm0, qword [ebp - 0x34]
mov dword [ebp - 0x48], 7
movq qword [esi + 0x28], xmm0
mov dword [ebp - 0x34], 0
mov dword [ebp - 0x30], 7
mov word [ebp - 0x44], ax
jmp 0x403f7d
xor eax, eax
mov dword [esi + 0x10], 0
mov dword [esi + 0x14], 7
mov word [esi], ax
mov dword [esi + 0x28], eax
mov dword [esi + 0x2c], 7
mov word [esi + 0x18], ax
mov byte [ebp - 4], 2
mov dword [edi + 0xdc], 0
mov dword [edi + 0xe0], 0
push 0x20
lfence
call fcn.00406b50
add esp, 4
mov dword [eax], eax
mov dword [eax + 4], eax
mov dword [edi + 0xdc], eax
lea eax, [ebp - 0x24]
mov byte [ebp - 4], 3
push eax
lea eax, [ebp - 0x28]
mov dword [ebp - 0x2c], 0
push eax
lea eax, [ebp - 0x2c]
mov dword [ebp - 0x28], 0
push eax
mov dword [ebp - 0x24], 0
call dword [sym.imp.ntdll.dll_RtlGetNtVersionNumbers]
mov ecx, dword [ebp - 0x24]
mov eax, ecx
shr eax, 0x1c
push eax
movzx eax, cx
push eax
push dword [ebp - 0x28]
push dword [ebp - 0x2c]
push str.Running_on__d._d._d_flavor__01X
push edi
call fcn.00402550
movzx eax, byte [edi + 0x78]
push eax
push str.MainDialog:_is_elevated__d
push edi
call fcn.00402550
lea ecx, [edi + 0x94]
add esp, 0x24
cmp dword [ecx + 0x14], 8
jb 0x404017
mov ecx, dword [ecx]
cmp dword [edi + 0xd8], 8
lea eax, [edi + 0xc4]
jb 0x404028
mov eax, dword [eax]
push ecx
push eax
push str.Session_user:__s_Process_user:__s
push edi
call fcn.00402550
add esp, 0x10
xor eax, eax
cmp byte [edi + 0x78], al
mov ecx, 4
cmovne eax, ecx
push dword [eax + 0x421210]
push dword [edi + 0x44]
call dword [sym.imp.USER32.dll_SetWindowTextW]
mov esi, dword [sym.imp.USER32.dll_SendMessageW]
push 0
push 1
push 0xf1
push dword [edi + 0x18]
call esi
push 0
push dword [edi + 8]
call dword [sym.imp.USER32.dll_EnableWindow]
push 0
push dword [edi + 4]
call dword [sym.imp.USER32.dll_EnableWindow]
cmp byte [edi + 0x78], 0
jne 0x4040c6
push 0
push dword [edi + 0x10]
call dword [sym.imp.USER32.dll_EnableWindow]
push 0
push dword [edi + 0x14]
call dword [sym.imp.USER32.dll_EnableWindow]
push 0
push dword [edi + 0x18]
call dword [sym.imp.USER32.dll_EnableWindow]
push 0
push dword [edi + 0x1c]
call dword [sym.imp.USER32.dll_EnableWindow]
push 0
push dword [edi + 0x34]
call dword [sym.imp.USER32.dll_EnableWindow]
push 0
push dword [edi + 0x38]
call dword [sym.imp.USER32.dll_EnableWindow]
push 0x10000020
push 0
push 0x1036
push dword [edi + 0x3c]
call esi
push 0x2c
lea eax, [ebp - 0x88]
push 0
push eax
call fcn.004081b0
add esp, 0xc
lea eax, [ebp - 0x88]
push eax
push 0
push 0x1061
push dword [edi + 0x3c]
call esi
push 0xffffffffffffffff
push 0
push 0x1026
push dword [edi + 0x3c]
call esi
mov ecx, dword [0x42564c]
lea edx, [ebp - 0x1c]
mov dword [ebp - 0x1c], 0
push edx
push ecx
mov eax, dword [ecx]
call dword [eax + 0x20]
xor edx, edx
mov dword [ebp - 0x18], edx
cmp dword [ebp - 0x1c], edx
jle 0x404261
mov ecx, dword [0x42564c]
lea esi, [ebp - 0x8c]
push esi
mov dword [ebp - 0x8c], 0
push edx
mov eax, dword [ecx]
push ecx
call dword [eax + 0x24]
mov ecx, dword [ebp - 0x8c]
lea eax, [ebp - 0x44]
push eax
call fcn.00402050
mov byte [ebp - 4], 4
lea esi, [ebp - 0x44]
mov eax, dword [ebp - 0x18]
xorps xmm0, xmm0
cmp dword [ebp - 0x30], 8
movups xmmword [ebp - 0xb0], xmm0
cmovae esi, dword [ebp - 0x44]
mov dword [ebp - 0xa8], eax
lea eax, [ebp - 0xc8]
push eax
push 0
push 0x104d
push dword [edi + 0x3c]
mov dword [ebp - 0xc8], 4
mov dword [ebp - 0xc4], SysStringLen
mov dword [ebp - 0xc0], 0
mov dword [ebp - 0xbc], 0
mov dword [ebp - 0xb8], 0
mov dword [ebp - 0xb4], 0x4211c8
movups xmmword [ebp - 0xa0], xmm0
mov dword [ebp - 0x90], 0
call dword [sym.imp.USER32.dll_SendMessageW]
lea ecx, [ebp - 0x104]
mov dword [ebp - 0xf0], esi
mov esi, dword [sym.imp.USER32.dll_SendMessageW]
push ecx
push eax
push 0x1074
push dword [edi + 0x3c]
mov dword [ebp - 0xfc], 0
call esi
mov eax, dword [ebp - 0x8c]
push eax
mov ecx, dword [eax]
call dword [ecx + 8]
mov byte [ebp - 4], 3
mov edx, dword [ebp - 0x30]
cmp edx, 8
jb 0x404251
mov eax, dword [ebp - 0x44]
lea edx, [edx*2 + 2]
mov ecx, eax
cmp edx, 0x1000
jb 0x404247
mov eax, dword [eax - 4]
add edx, 0x23
sub ecx, eax
add ecx, 0xfffffffc
cmp ecx, 0x1f
ja 0x40429b
push edx
push eax
call fcn.004068ce
add esp, 8
mov edx, dword [ebp - 0x18]
inc edx
mov dword [ebp - 0x18], edx
cmp edx, dword [ebp - 0x1c]
jl 0x404130
push 0xffff
push 0
push 0x101e
push dword [edi + 0x3c]
call esi
mov ecx, edi
call fcn.00403890
mov eax, edi
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
mov ecx, dword [ebp - 0x14]
xor ecx, ebp
call fcn.004066bd
mov esp, ebp
pop ebp
mov esp, ebx
pop ebx
ret 8
call fcn.0040a6c0
int3