Function at 0x40bd68
Capabilities:
Get session user name

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x954
mov eax, dword [0x4bd5dc]
push ebx
push esi
mov ebx, ecx
push edi
mov dword [ebp - 0x954], eax
mov ecx, 0x1ff
xor eax, eax
lea edi, [ebp - 0x950]
push 0xdeb0
rep stosd dword es:[edi], eax
lea eax, [ebp - 4]
mov dword [ebp - 0x2c], 0x400
push eax
call fcn.00461770
pop ecx
mov esi, dword [sym.imp.USER32.dll_SetWindowTextW]
pop ecx
push dword [eax]
push dword [ebx + 4]
call esi
lea ecx, [ebp - 4]
call fcn.004038fb
push 6
xor eax, eax
pop ecx
lea edi, [ebp - 0x48]
rep stosd dword es:[edi], eax
mov eax, dword [0x4b0550]
mov dword [ebp - 0x4c], 3
mov dword [ebp - 0x30], eax
lea eax, [ebp - 0x2c]
push eax
lea eax, [ebp - 0x954]
push eax
call dword [sym.imp.ADVAPI32.dll_GetUserNameW]
push str.___HKCU_
lea ecx, [ebp - 0x14]
call fcn.00403927
push 0x4b15d4
lea ecx, [ebp - 4]
call fcn.00403927
lea eax, [ebp - 0x14]
lea ecx, [ebp - 0x10]
push eax
lea eax, [ebp - 0x954]
push eax
call fcn.0040a4e8
push eax
lea eax, [ebp - 4]
push eax
lea eax, [ebp - 0x18]
push 0x34
push eax
call fcn.00461770
pop ecx
pop ecx
push eax
lea eax, [ebp - 0xc]
push eax
call fcn.00403b20
push eax
lea eax, [ebp - 8]
push eax
call fcn.00403b20
push eax
lea eax, [ebp - 0x24]
push eax
call fcn.00403b20
lea ecx, [ebp - 8]
call fcn.004038fb
lea ecx, [ebp - 0xc]
call fcn.004038fb
lea ecx, [ebp - 0x18]
call fcn.004038fb
lea ecx, [ebp - 0x10]
call fcn.004038fb
lea ecx, [ebp - 4]
call fcn.004038fb
lea ecx, [ebp - 0x14]
call fcn.004038fb
push str.__HKCR_
lea ecx, [ebp - 4]
call fcn.00403927
lea eax, [ebp - 4]
mov edi, 0xda
push eax
lea eax, [ebp - 0x10]
push edi
push eax
call fcn.00461770
pop ecx
pop ecx
push eax
lea eax, [ebp - 0x28]
push eax
call fcn.00403b20
lea ecx, [ebp - 0x10]
call fcn.004038fb
lea ecx, [ebp - 4]
call fcn.004038fb
push str.__HKLM_
lea ecx, [ebp - 4]
call fcn.00403927
lea eax, [ebp - 4]
push eax
lea eax, [ebp - 0x10]
push edi
push eax
call fcn.00461770
pop ecx
pop ecx
push eax
lea eax, [ebp - 0x20]
push eax
call fcn.00403b20
lea ecx, [ebp - 0x10]
call fcn.004038fb
lea ecx, [ebp - 4]
call fcn.004038fb
lea eax, [ebp - 0x1c]
push 0x61a81
push eax
call fcn.00461770
mov edi, dword [sym.imp.USER32.dll_GetDlgItem]
pop ecx
pop ecx
push 0x138e
push dword [ebx + 4]
call edi
push dword [ebp - 0x1c]
push eax
call esi
push 0x425
push dword [ebx + 4]
call edi
mov esi, dword [sym.imp.USER32.dll_SendMessageW]
xor edi, edi
push edi
push edi
push 0x1309
push eax
mov dword [ebp - 8], eax
call esi
push edi
lea ecx, [ebp - 0x24]
call fcn.00403c58
mov dword [ebp - 0x40], eax
lea eax, [ebp - 0x4c]
push eax
mov dword [ebp - 0x38], edi
push edi
mov edi, 0x133e
push edi
push dword [ebp - 8]
call esi
push 0
lea ecx, [ebp - 0x28]
call fcn.00403c58
push 1
mov dword [ebp - 0x40], eax
pop eax
lea ecx, [ebp - 0x4c]
mov dword [ebp - 0x38], eax
push ecx
push eax
push edi
push dword [ebp - 8]
call esi
push 0
lea ecx, [ebp - 0x20]
call fcn.00403c58
push 2
mov dword [ebp - 0x40], eax
pop eax
lea ecx, [ebp - 0x4c]
push ecx
push eax
push edi
mov dword [ebp - 0x38], eax
push dword [ebp - 8]
call esi
push 0
push dword [ebx + 0x24]
push 0x130c
push dword [ebp - 8]
call esi
and dword [ebp - 0x78], 0
push 0xa
pop ecx
xor eax, eax
lea edi, [ebp - 0x74]
mov dword [ebp - 0xa4], 0x138d
mov dword [ebp - 0xa0], 0x3ee
mov dword [ebp - 0x9c], 0x3ef
mov dword [ebp - 0x98], 0x3f0
mov dword [ebp - 0x94], 0x3f1
mov dword [ebp - 0x90], 0x3f2
mov dword [ebp - 0x8c], 0x3f3
mov dword [ebp - 0x88], 0x4bb
mov dword [ebp - 0x84], 0x3f5
mov dword [ebp - 0x80], 0x8a1
mov dword [ebp - 0x7c], 0xfbf
rep stosd dword es:[edi], eax
push 0xa
xor edx, edx
pop ecx
lea edi, [ebp - 0x124]
mov dword [ebp - 0x154], 0xdeb2
mov dword [ebp - 0x150], 0xdeb3
mov dword [ebp - 0x14c], 0xdeb4
mov dword [ebp - 0x148], 0xdeb5
mov dword [ebp - 0x144], 0xdeb6
mov dword [ebp - 0x140], 0xdec1
mov dword [ebp - 0x13c], 0xdeac
mov dword [ebp - 0x138], 0xdeab
mov dword [ebp - 0x134], edx
mov dword [ebp - 0x130], 0xdeb0
mov dword [ebp - 0x12c], edx
mov dword [ebp - 0x128], edx
rep stosd dword es:[edi], eax
mov eax, str.Folder
push 0xb
mov dword [ebp - 0xe8], eax
mov dword [ebp - 0xe0], eax
pop ecx
xor eax, eax
lea edi, [ebp - 0xd0]
mov dword [ebp - 0xfc], str.Directory
mov dword [ebp - 0xf8], str.CLSID20D04FE0_3AEA_1069_A2D8_08002B30309D
mov dword [ebp - 0xf4], str.CLSID208D2C60_3AEA_1069_A2D7_08002B30309D
mov dword [ebp - 0xf0], str.CLSID450D8FBA_AD25_11D0_98A8_0800361B1103
mov dword [ebp - 0xec], str.CLSID645FF040_5081_101B_9F08_00AA002F954E
mov dword [ebp - 0xe4], 0x4b15a8
mov dword [ebp - 0xdc], edx
mov dword [ebp - 0xd8], edx
mov dword [ebp - 0xd4], edx
rep stosd dword es:[edi], eax
mov eax, dword [ebp - 0xa4]
mov dword [ebp - 0xc], edx
cmp eax, edx
je 0x40c207
mov dword [ebp - 4], eax
mov dword [ebp - 0x14], edx
mov eax, dword [ebp - 0x14]
push dword [ebp + eax - 0x154]
lea eax, [ebp - 0x18]
push eax
call fcn.00461770
mov eax, dword [eax]
pop ecx
mov edi, dword [sym.imp.USER32.dll_GetDlgItem]
pop ecx
push dword [ebp - 4]
mov dword [ebp - 0x10], eax
push dword [ebx + 4]
call edi
push dword [ebp - 0x10]
push eax
call dword [sym.imp.USER32.dll_SetWindowTextW]
lea ecx, [ebp - 0x18]
call fcn.004038fb
or dword [ebp - 8], 0xffffffff
cmp dword [ebp - 0xc], 6
jge 0x40c1a7
mov eax, dword [ebp - 0x14]
push 0
push 1
push ecx
mov ecx, esp
push dword [ebp + eax - 0xfc]
call fcn.00403927
call fcn.0043a3c2
add esp, 0xc
cmp dword [ebp - 0xc], 5
mov dword [ebp - 8], eax
jne 0x40c1a3
push 0x4bb
push dword [ebx + 4]
call edi
push 0
push dword [ebp - 8]
push 0xf1
push eax
call esi
push 0x4bb
push dword [ebx + 4]
call edi
xor ecx, ecx
cmp dword [ebp - 8], ecx
sete cl
push ecx
push eax
call dword [sym.imp.USER32.dll_EnableWindow]
cmp dword [ebp - 0xc], 6
jne 0x40c1b1
call fcn.00482e4b
mov dword [ebp - 8], eax
cmp dword [ebp - 0xc], 7
jne 0x40c1d4
push 1
push 1
push ecx
mov ecx, esp
push dword [ebp - 0xe0]
call fcn.00403927
call fcn.0043a3c2
add esp, 0xc
mov dword [ebp - 8], eax
push dword [ebp - 4]
push dword [ebx + 4]
call edi
push 0
push dword [ebp - 8]
push 0xf1
push eax
call esi
inc dword [ebp - 0xc]
mov eax, dword [ebp - 0xc]
shl eax, 2
mov dword [ebp - 0x14], eax
mov eax, dword [ebp + eax - 0xa4]
test eax, eax
mov dword [ebp - 4], eax
jne 0x40c107
lea ecx, [ebp - 0x1c]
call fcn.004038fb
lea ecx, [ebp - 0x20]
call fcn.004038fb
lea ecx, [ebp - 0x28]
call fcn.004038fb
lea ecx, [ebp - 0x24]
call fcn.004038fb
lea ecx, [ebp - 0x30]
call fcn.004038fb
pop edi
pop esi
pop ebx
leave
ret