Function at 0x406de0
Capabilities:
Access peb ldr_data
Get session information
Hide graphical window

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 0x41d838
mov eax, dword fs:[0]
push eax
push ebx
sub esp, 0x130
mov eax, dword [0x429040]
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 - 0x138], edi
mov dword [ebp - 0x134], edi
mov eax, dword [ebx + 8]
push 0x3f4
mov dword [ebp - 0x13c], 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
push 0x408
push dword [edi]
mov dword [edi + 0x60], eax
call esi
mov dword [edi + 0x64], eax
xor esi, esi
lea eax, [ebp - 0xa8]
mov dword [ebp - 0xa8], 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 0x406fbe
lea eax, [ebp - 0x18]
mov dword [ebp - 0x18], 4
push eax
push 4
lea eax, [ebp - 0x1c]
push eax
push 0x14
push dword [ebp - 0xa8]
call dword [sym.imp.ADVAPI32.dll_GetTokenInformation]
push dword [ebp - 0xa8]
test eax, eax
cmovne esi, dword [ebp - 0x1c]
call dword [sym.imp.KERNEL32.dll_CloseHandle]
test esi, esi
lea ecx, [edi + 0x80]
setne al
mov byte [edi + 0x7c], al
call fcn.0040a410
lea eax, [ebp - 0x1c]
mov dword [ebp - 4], 0
push eax
lea eax, [ebp - 0xa8]
mov dword [ebp - 0xa8], 0
push eax
push 0x18
push 0xffffffffffffffff
lea esi, [edi + 0xb0]
mov dword [ebp - 0x1c], 0
push 0
mov dword [ebp - 0x134], esi
call dword [sym.imp.WTSAPI32.dll_WTSQuerySessionInformationW]
test eax, eax
je 0x407120
mov eax, dword [ebp - 0xa8]
mov dword [ebp - 0x134], eax
test eax, eax
je 0x407120
lea edx, [eax + 0x82]
mov dword [ebp - 0x3c], 0
mov ecx, edx
mov dword [ebp - 0x38], 0
xorps xmm0, xmm0
movups xmmword [ebp - 0x4c], xmm0
lea eax, [ecx + 2]
mov dword [ebp - 0x18], eax
nop dword [eax + eax]
mov ax, word [ecx]
add ecx, 2
test ax, ax
jne 0x407050
sub ecx, dword [ebp - 0x18]
sar ecx, 1
push ecx
push edx
lea ecx, [ebp - 0x4c]
call fcn.00409b10
mov edx, dword [ebp - 0x134]
xorps xmm0, xmm0
add edx, 0x60
mov byte [ebp - 4], 1
mov ecx, edx
mov dword [ebp - 0xb4], 0
movups xmmword [ebp - 0xc4], xmm0
mov dword [ebp - 0xb0], 0
lea eax, [ecx + 2]
mov dword [ebp - 0x134], eax
mov ax, word [ecx]
add ecx, 2
test ax, ax
jne 0x4070a0
sub ecx, dword [ebp - 0x134]
sar ecx, 1
push ecx
push edx
lea ecx, [ebp - 0xc4]
call fcn.00409b10
push dword [ebp - 0xa8]
call dword [sym.imp.WTSAPI32.dll_WTSFreeMemory]
xorps xmm0, xmm0
movups xmmword [esi], xmm0
mov dword [esi + 0x10], 0
movups xmm0, xmmword [ebp - 0xc4]
mov dword [esi + 0x14], 0
movups xmmword [esi], xmm0
movq xmm0, qword [ebp - 0xb4]
movq qword [esi + 0x10], xmm0
xorps xmm0, xmm0
movups xmmword [esi + 0x18], xmm0
mov dword [esi + 0x28], 0
movups xmm0, xmmword [ebp - 0x4c]
mov dword [esi + 0x2c], 0
movups xmmword [esi + 0x18], xmm0
movq xmm0, qword [ebp - 0x3c]
movq qword [esi + 0x28], xmm0
jmp 0x407159
xorps xmm0, xmm0
xor eax, eax
movups xmmword [esi], xmm0
mov dword [esi + 0x10], 0
mov dword [esi + 0x14], 0
mov dword [esi + 0x10], 0
mov dword [esi + 0x14], 7
mov word [esi], ax
movups xmmword [esi + 0x18], xmm0
mov dword [esi + 0x28], eax
mov dword [esi + 0x2c], 7
mov word [esi + 0x18], ax
mov byte [ebp - 4], 2
push 0x20
mov dword [edi + 0xe0], 0
mov dword [edi + 0xe4], 0
call fcn.0040b703
add esp, 4
mov dword [eax], eax
mov dword [eax + 4], eax
mov dword [edi + 0xe0], eax
push 0x41
mov byte [ebp - 4], 3
call dword [sym.imp.USER32.dll_CharLowerW]
movzx eax, ax
xorps xmm0, xmm0
mov edi, eax
mov dword [ebp - 0x18], eax
movups xmmword [ebp - 0x58], xmm0
mov dword [ebp - 0x38], 0
xor esi, esi
movups xmmword [ebp - 0x48], xmm0
nop
test esi, esi
jne 0x4071ca
mov ax, word [esi*2 + 0x425850]
xor ax, di
mov word [ebp + esi*2 - 0x58], ax
inc esi
mov eax, dword [ebp - 0x18]
jmp 0x4071b0
lea edx, [esi - 1]
mov ecx, eax
call fcn.00402c50
imul ecx, eax, 0x19660d
mov ax, word [esi*2 + 0x425850]
add ecx, 0x3c6ef35f
xor ax, cx
movzx eax, ax
mov word [ebp + esi*2 - 0x58], ax
inc esi
mov eax, dword [ebp - 0x18]
cmp esi, 0x12
jb 0x4071b0
movups xmm0, xmmword [ebp - 0x58]
mov eax, dword [ebp - 0x38]
mov edi, dword [ebp - 0x138]
mov dword [ebp - 0xb0], eax
lea eax, [ebp - 0xd0]
movups xmmword [ebp - 0xd0], xmm0
push eax
movups xmm0, xmmword [ebp - 0x48]
push edi
movups xmmword [ebp - 0xc0], xmm0
call fcn.00403670
add esp, 8
mov dword [ebp - 0x2c], 0
lea eax, [ebp - 0x24]
mov dword [ebp - 0x28], 0
mov dword [ebp - 0x24], 0
push eax
lea eax, [ebp - 0x28]
push eax
lea eax, [ebp - 0x2c]
push eax
call dword [sym.imp.ntdll.dll_RtlGetNtVersionNumbers]
mov eax, dword [ebp - 0x24]
mov ecx, eax
mov esi, dword [ebp - 0x28]
mov edi, dword [ebp - 0x2c]
movzx eax, ax
mov dword [ebp - 0x1c], eax
lea eax, [ebp - 0x130]
shr ecx, 0x1c
push eax
mov dword [ebp - 0x134], ecx
call fcn.00407600
push dword [ebp - 0x134]
push dword [ebp - 0x1c]
push esi
push edi
mov edi, dword [ebp - 0x138]
push eax
push edi
call fcn.00403670
movzx esi, byte [edi + 0x7c]
add esp, 0x18
push 0x41
call dword [sym.imp.USER32.dll_CharLowerW]
movzx edx, ax
mov ecx, 0x4257d4
lea eax, [ebp - 0xe8]
push eax
call fcn.00402500
add esp, 4
movups xmm0, xmmword [eax]
push esi
movups xmmword [ebp - 0x6c], xmm0
movups xmm0, xmmword [eax + 0x10]
movups xmmword [ebp - 0x5c], xmm0
movups xmm0, xmmword [eax + 0x20]
movups xmmword [ebp - 0x4c], xmm0
mov ecx, dword [eax + 0x30]
mov dword [ebp - 0x3c], ecx
mov ax, word [eax + 0x34]
mov word [ebp - 0x38], ax
lea eax, [ebp - 0x6c]
push eax
push edi
call fcn.00403670
lea eax, [edi + 0x98]
add esp, 0xc
cmp dword [eax + 0x14], 7
mov dword [ebp - 0x138], eax
jbe 0x407309
mov eax, dword [eax]
mov dword [ebp - 0x138], eax
cmp dword [edi + 0xdc], 7
lea esi, [edi + 0xc8]
jbe 0x40731a
mov esi, dword [esi]
push 0x41
call dword [sym.imp.USER32.dll_CharLowerW]
movzx edx, ax
mov ecx, 0x425790
lea eax, [ebp - 0x78]
push eax
call fcn.004065a0
add esp, 4
movups xmm0, xmmword [eax]
push dword [ebp - 0x138]
movups xmmword [ebp - 0x130], xmm0
push esi
movups xmm0, xmmword [eax + 0x10]
movups xmmword [ebp - 0x120], xmm0
movups xmm0, xmmword [eax + 0x20]
movups xmmword [ebp - 0x110], xmm0
movups xmm0, xmmword [eax + 0x30]
movups xmmword [ebp - 0x100], xmm0
mov eax, dword [eax + 0x40]
mov dword [ebp - 0xf0], eax
lea eax, [ebp - 0x130]
push eax
push edi
call fcn.00403670
add esp, 0x10
xor eax, eax
cmp byte [edi + 0x7c], al
mov ecx, 4
cmovne eax, ecx
push dword [eax + 0x426674]
push dword [edi + 0x44]
call dword [sym.imp.USER32.dll_SetWindowTextW]
push 0
push 1
push 0xf1
push dword [edi + 0x18]
call dword [sym.imp.USER32.dll_SendMessageW]
mov esi, dword [sym.imp.USER32.dll_EnableWindow]
push 0
push dword [edi + 8]
call esi
push 0
push dword [edi + 4]
call esi
cmp byte [edi + 0x7c], 0
push 0
jne 0x407402
push dword [edi + 0x10]
mov esi, dword [sym.imp.USER32.dll_ShowWindow]
call esi
push 0
push dword [edi + 0x14]
call esi
push 0
push dword [edi + 0x18]
call esi
push 0
push dword [edi + 0x1c]
call esi
push 0
push dword [edi + 0x34]
call esi
push 0
push dword [edi + 0x38]
call esi
push 0
push dword [edi + 0xc]
call esi
jmp 0x40740b
push dword [edi + 0x64]
call dword [sym.imp.USER32.dll_ShowWindow]
mov esi, dword [sym.imp.USER32.dll_SendMessageW]
push 0x10000020
push 0
push 0x1036
push dword [edi + 0x3c]
call esi
push 0x2c
lea eax, [ebp - 0xa4]
push 0
push eax
call fcn.0040d270
add esp, 0xc
lea eax, [ebp - 0xa4]
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 [0x42a584]
lea edx, [ebp - 0x20]
mov dword [ebp - 0x20], 0
push edx
push ecx
mov eax, dword [ecx]
call dword [eax + 0x20]
xor edx, edx
mov dword [ebp - 0x18], edx
cmp dword [ebp - 0x20], edx
jle 0x4075b1
nop dword [eax + eax]
mov ecx, dword [0x42a584]
lea esi, [ebp - 0xa8]
push esi
mov dword [ebp - 0xa8], 0
push edx
mov eax, dword [ecx]
push ecx
call dword [eax + 0x24]
mov ecx, dword [ebp - 0xa8]
lea eax, [ebp - 0x4c]
push eax
call fcn.00402dc0
mov byte [ebp - 4], 4
lea esi, [ebp - 0x4c]
mov eax, dword [ebp - 0x18]
xorps xmm0, xmm0
cmp dword [ebp - 0x38], 7
movups xmmword [ebp - 0xd0], xmm0
cmova esi, dword [ebp - 0x4c]
mov dword [ebp - 0xc8], eax
lea eax, [ebp - 0xe8]
push eax
push 0
push 0x104d
push dword [edi + 0x3c]
mov dword [ebp - 0xe8], 4
mov dword [ebp - 0xe4], SysReAllocString
mov dword [ebp - 0xe0], 0
mov dword [ebp - 0xdc], 0
mov dword [ebp - 0xd8], 0
mov dword [ebp - 0xd4], 0x425788
movups xmmword [ebp - 0xc0], xmm0
mov dword [ebp - 0xb0], 0
call dword [sym.imp.USER32.dll_SendMessageW]
lea ecx, [ebp - 0x128]
mov dword [ebp - 0x114], esi
mov esi, dword [sym.imp.USER32.dll_SendMessageW]
push ecx
push eax
push 0x1074
push dword [edi + 0x3c]
mov dword [ebp - 0x120], 0
call esi
mov eax, dword [ebp - 0xa8]
push eax
mov ecx, dword [eax]
call dword [ecx + 8]
mov byte [ebp - 4], 3
mov ecx, dword [ebp - 0x38]
cmp ecx, 7
jbe 0x4075a1
mov edx, dword [ebp - 0x4c]
lea ecx, [ecx*2 + 2]
mov eax, edx
cmp ecx, 0x1000
jb 0x407597
mov edx, dword [eax - 4]
add ecx, 0x23
sub eax, edx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x4075eb
push ecx
push edx
call fcn.0040b482
add esp, 8
mov edx, dword [ebp - 0x18]
inc edx
mov dword [ebp - 0x18], edx
cmp edx, dword [ebp - 0x20]
jl 0x407480
push 0xffff
push 0
push 0x101e
push dword [edi + 0x3c]
call esi
mov ecx, edi
call fcn.00406870
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.0040b474
mov esp, ebp
pop ebp
mov esp, ebx
pop ebx
ret 8
call fcn.0040ecac
int3