Function at 0x4155b0
Capabilities:
Get session user name
Resolve function by parsing pe exports

Disassembly:
sub esp, 0x964
mov eax, dword [0x553d9c]
push ebx
push ebp
push esi
mov ebx, ecx
push edi
mov dword [esp + 0x174], eax
mov ecx, 0x1ff
xor eax, eax
lea edi, [esp + 0x178]
rep stosd dword es:[edi], eax
lea ecx, [esp + 0x10]
push 0xdeb0
push ecx
mov dword [esp + 0x30], ebx
mov dword [esp + 0x50], 0x400
call fcn.004bc8d0
mov eax, dword [eax]
mov edx, dword [ebx + 4]
add esp, 8
push eax
push edx
call dword [sym.imp.USER32.dll_SetWindowTextW]
mov eax, dword [esp + 0x10]
mov edx, dword [0x546564]
lea ecx, [eax - 0xc]
cmp ecx, edx
je 0x415632
add eax, 0xfffffff4
push eax
call dword [sym.imp.KERNEL32.dll_InterlockedDecrement]
test eax, eax
jg 0x415632
mov edx, dword [esp + 0x10]
add edx, 0xfffffff4
push edx
call fcn.00531732
add esp, 4
mov ecx, 6
xor eax, eax
lea edi, [esp + 0x54]
lea edx, [esp + 0x174]
rep stosd dword es:[edi], eax
mov eax, dword [0x546560]
lea ecx, [esp + 0x48]
push ecx
push edx
mov dword [esp + 0x58], 3
mov dword [esp + 0x54], eax
call dword [sym.imp.ADVAPI32.dll_GetUserNameW]
mov eax, dword [0x546560]
mov ebp, dword [sym.imp.KERNEL32.dll_lstrlenA]
mov ecx, str.___HKCU_
mov dword [esp + 0x14], eax
test ecx, ecx
je 0x4156b1
push ecx
call ebp
mov esi, eax
test esi, esi
je 0x4156b1
push esi
lea ecx, [esp + 0x18]
call fcn.00405530
test eax, eax
je 0x4156b1
mov edx, dword [esp + 0x14]
inc esi
push esi
push str.___HKCU_
push edx
call fcn.00405400
add esp, 0xc
lea ecx, [esp + 0x14]
push 0xffffffffffffffff
call fcn.00405bb0
mov eax, dword [0x546560]
mov ecx, 0x5475dc
test ecx, ecx
mov dword [esp + 0x20], eax
je 0x4156f9
push ecx
call ebp
mov esi, eax
test esi, esi
je 0x4156f9
push esi
lea ecx, [esp + 0x24]
call fcn.00405530
test eax, eax
je 0x4156f9
mov edx, dword [esp + 0x20]
inc esi
push esi
push 0x5475dc
push edx
call fcn.00405400
add esp, 0xc
lea ecx, [esp + 0x20]
push 0xffffffffffffffff
call fcn.00405bb0
mov eax, dword [0x546560]
lea ecx, [esp + 0x174]
test ecx, ecx
mov dword [esp + 0x1c], eax
je 0x41576f
lea edx, [esp + 0x174]
shr edx, 0x10
jne 0x415731
xor eax, eax
lea ecx, [esp + 0x174]
mov ax, cx
lea ecx, [esp + 0x1c]
push eax
call fcn.00413c90
jmp 0x41576f
lea edx, [esp + 0x174]
push edx
call dword [sym.imp.KERNEL32.dll_lstrlenW]
mov esi, eax
test esi, esi
je 0x41576f
push esi
lea ecx, [esp + 0x20]
call fcn.00405530
test eax, eax
je 0x41576f
mov edi, dword [esp + 0x1c]
lea ecx, [esi + esi]
mov eax, ecx
lea esi, [esp + 0x174]
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, eax
and ecx, 3
rep movsb byte es:[edi], byte [esi]
lea ecx, [esp + 0x18]
push 0x34
push ecx
call fcn.004bc8d0
mov edx, dword [0x546560]
mov ecx, dword [esp + 0x28]
mov eax, dword [eax]
add esp, 8
mov dword [esp + 0x30], edx
mov edx, dword [eax - 8]
push ecx
mov ecx, dword [ecx - 8]
push ecx
push eax
push edx
lea ecx, [esp + 0x40]
call fcn.004059f0
lea eax, [esp + 0x30]
lea ecx, [esp + 0x10]
push eax
call fcn.00405440
lea ecx, [esp + 0x30]
call fcn.00405700
mov ecx, dword [0x546560]
mov eax, dword [esp + 0x1c]
mov dword [esp + 0x2c], ecx
push eax
mov edx, dword [eax - 8]
mov eax, dword [esp + 0x14]
push edx
push eax
mov eax, dword [eax - 8]
lea ecx, [esp + 0x38]
push eax
call fcn.004059f0
lea ecx, [esp + 0x2c]
push ecx
lea ecx, [esp + 0x38]
call fcn.00405440
lea ecx, [esp + 0x2c]
call fcn.00405700
mov edx, dword [0x546560]
mov eax, dword [esp + 0x14]
mov dword [esp + 0x38], edx
push eax
mov eax, dword [eax - 8]
push eax
mov eax, dword [esp + 0x3c]
push eax
mov ecx, dword [eax - 8]
push ecx
lea ecx, [esp + 0x48]
call fcn.004059f0
lea edx, [esp + 0x38]
lea ecx, [esp + 0x24]
push edx
call fcn.00405440
lea ecx, [esp + 0x38]
call fcn.00405700
mov eax, dword [esp + 0x34]
mov edx, dword [0x546564]
lea ecx, [eax - 0xc]
cmp ecx, edx
je 0x415863
mov esi, dword [sym.imp.KERNEL32.dll_InterlockedDecrement]
add eax, 0xfffffff4
push eax
call esi
test eax, eax
jg 0x415869
mov edx, dword [esp + 0x34]
add edx, 0xfffffff4
push edx
call fcn.00531732
add esp, 4
jmp 0x415869
mov esi, dword [sym.imp.KERNEL32.dll_InterlockedDecrement]
mov eax, dword [esp + 0x10]
mov edx, dword [0x546564]
lea ecx, [eax - 0xc]
cmp ecx, edx
je 0x415894
add eax, 0xfffffff4
push eax
call esi
test eax, eax
jg 0x415894
mov edx, dword [esp + 0x10]
add edx, 0xfffffff4
push edx
call fcn.00531732
add esp, 4
mov eax, dword [esp + 0x18]
mov edx, dword [0x546564]
lea ecx, [eax - 0xc]
cmp ecx, edx
je 0x4158bf
add eax, 0xfffffff4
push eax
call esi
test eax, eax
jg 0x4158bf
mov edx, dword [esp + 0x18]
add edx, 0xfffffff4
push edx
call fcn.00531732
add esp, 4
mov eax, dword [esp + 0x1c]
mov edx, dword [0x546564]
lea ecx, [eax - 0xc]
cmp ecx, edx
je 0x4158ea
add eax, 0xfffffff4
push eax
call esi
test eax, eax
jg 0x4158ea
mov edx, dword [esp + 0x1c]
add edx, 0xfffffff4
push edx
call fcn.00531732
add esp, 4
mov eax, dword [esp + 0x20]
mov edx, dword [0x546564]
lea ecx, [eax - 0xc]
cmp ecx, edx
je 0x415915
add eax, 0xfffffff4
push eax
call esi
test eax, eax
jg 0x415915
mov edx, dword [esp + 0x20]
add edx, 0xfffffff4
push edx
call fcn.00531732
add esp, 4
mov eax, dword [esp + 0x14]
mov edx, dword [0x546564]
lea ecx, [eax - 0xc]
cmp ecx, edx
je 0x415940
add eax, 0xfffffff4
push eax
call esi
test eax, eax
jg 0x415940
mov edx, dword [esp + 0x14]
add edx, 0xfffffff4
push edx
call fcn.00531732
add esp, 4
mov eax, dword [0x546560]
mov ecx, str.__HKCR_
test ecx, ecx
mov dword [esp + 0x14], eax
je 0x415988
push ecx
call ebp
mov esi, eax
test esi, esi
je 0x415988
push esi
lea ecx, [esp + 0x18]
call fcn.00405530
test eax, eax
je 0x415988
mov edx, dword [esp + 0x14]
inc esi
push esi
push str.__HKCR_
push edx
call fcn.00405400
add esp, 0xc
lea ecx, [esp + 0x14]
push 0xffffffffffffffff
call fcn.00405bb0
lea eax, [esp + 0x18]
push 0xda
push eax
call fcn.004bc8d0
mov ecx, dword [0x546560]
mov eax, dword [eax]
mov dword [esp + 0x18], ecx
mov ecx, dword [esp + 0x1c]
add esp, 8
mov edx, dword [ecx - 8]
push ecx
push edx
push eax
mov eax, dword [eax - 8]
push eax
lea ecx, [esp + 0x20]
call fcn.004059f0
lea ecx, [esp + 0x10]
push ecx
lea ecx, [esp + 0x44]
call fcn.00405440
lea ecx, [esp + 0x10]
call fcn.00405700
mov eax, dword [esp + 0x18]
mov ecx, dword [0x546564]
lea edx, [eax - 0xc]
cmp edx, ecx
je 0x415a03
add eax, 0xfffffff4
push eax
call dword [sym.imp.KERNEL32.dll_InterlockedDecrement]
test eax, eax
jg 0x415a03
mov eax, dword [esp + 0x18]
add eax, 0xfffffff4
push eax
call fcn.00531732
add esp, 4
mov eax, dword [esp + 0x14]
mov edx, dword [0x546564]
lea ecx, [eax - 0xc]
cmp ecx, edx
je 0x415a32
add eax, 0xfffffff4
push eax
call dword [sym.imp.KERNEL32.dll_InterlockedDecrement]
test eax, eax
jg 0x415a32
mov edx, dword [esp + 0x14]
add edx, 0xfffffff4
push edx
call fcn.00531732
add esp, 4
mov eax, dword [0x546560]
mov ecx, str.__HKLM_
test ecx, ecx
mov dword [esp + 0x14], eax
je 0x415a7a
push ecx
call ebp
mov esi, eax
test esi, esi
je 0x415a7a
push esi
lea ecx, [esp + 0x18]
call fcn.00405530
test eax, eax
je 0x415a7a
mov edx, dword [esp + 0x14]
inc esi
push esi
push str.__HKLM_
push edx
call fcn.00405400
add esp, 0xc
lea ecx, [esp + 0x14]
push 0xffffffffffffffff
call fcn.00405bb0
lea eax, [esp + 0x18]
push 0xda
push eax
call fcn.004bc8d0
mov ecx, dword [0x546560]
mov eax, dword [eax]
mov dword [esp + 0x18], ecx
mov ecx, dword [esp + 0x1c]
add esp, 8
mov edx, dword [ecx - 8]
push ecx
push edx
push eax
mov eax, dword [eax - 8]
push eax
lea ecx, [esp + 0x20]
call fcn.004059f0
lea ecx, [esp + 0x10]
push ecx
lea ecx, [esp + 0x48]
call fcn.00405440
lea ecx, [esp + 0x10]
call fcn.00405700
mov eax, dword [esp + 0x18]
mov ecx, dword [0x546564]
lea edx, [eax - 0xc]
cmp edx, ecx
je 0x415af5
add eax, 0xfffffff4
push eax
call dword [sym.imp.KERNEL32.dll_InterlockedDecrement]
test eax, eax
jg 0x415af5
mov eax, dword [esp + 0x18]
add eax, 0xfffffff4
push eax
call fcn.00531732
add esp, 4
mov eax, dword [esp + 0x14]
mov edx, dword [0x546564]
lea ecx, [eax - 0xc]
cmp ecx, edx
je 0x415b24
add eax, 0xfffffff4
push eax
call dword [sym.imp.KERNEL32.dll_InterlockedDecrement]
test eax, eax
jg 0x415b24
mov edx, dword [esp + 0x14]
add edx, 0xfffffff4
push edx
call fcn.00531732
add esp, 4
lea eax, [esp + 0x3c]
push 0x61a81
push eax
call fcn.004bc8d0
mov ecx, dword [ebx + 4]
mov ebp, dword [sym.imp.USER32.dll_GetDlgItem]
add esp, 8
push 0x138e
push ecx
call ebp
mov edx, dword [esp + 0x3c]
push edx
push eax
call dword [sym.imp.USER32.dll_SetWindowTextW]
mov eax, dword [ebx + 4]
push 0x425
push eax
call ebp
mov edi, dword [sym.imp.USER32.dll_SendMessageW]
xor esi, esi
push esi
mov ebx, eax
push esi
push 0x1309
push ebx
call edi
mov ecx, dword [esp + 0x24]
xor edx, edx
cmp dword [ecx - 0xc], 1
lea eax, [ecx - 0xc]
mov dword [esp + 0x10], eax
jg 0x415b8a
cmp dword [ecx - 4], esi
jge 0x415be7
mov ecx, dword [ecx - 8]
cmp ecx, esi
mov dword [esp + 0x18], ecx
jle 0x415b97
mov edx, ecx
push edx
lea ecx, [esp + 0x28]
call fcn.00405530
test eax, eax
je 0x415be9
mov ecx, dword [esp + 0x18]
mov edx, dword [esp + 0x10]
mov edi, dword [esp + 0x24]
lea ecx, [ecx + ecx + 2]
lea esi, [edx + 0xc]
mov eax, ecx
mov edx, dword [esp + 0x18]
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, eax
mov eax, dword [esp + 0x10]
and ecx, 3
push eax
rep movsb byte es:[edi], byte [esi]
mov ecx, dword [esp + 0x28]
mov dword [ecx - 8], edx
call fcn.00405590
mov ecx, dword [esp + 0x24]
mov edi, dword [sym.imp.USER32.dll_SendMessageW]
xor esi, esi
mov eax, ecx
lea ecx, [esp + 0x50]
mov dword [esp + 0x5c], eax
push ecx
push esi
push 0x133e
push ebx
mov dword [esp + 0x74], esi
call edi
push esi
lea ecx, [esp + 0x44]
call fcn.00413620
lea edx, [esp + 0x50]
mov dword [esp + 0x5c], eax
push edx
push 1
push 0x133e
push ebx
mov dword [esp + 0x74], 1
call edi
push esi
lea ecx, [esp + 0x48]
call fcn.00413620
mov dword [esp + 0x5c], eax
lea eax, [esp + 0x50]
push eax
push 2
push 0x133e
push ebx
mov dword [esp + 0x74], 2
call edi
mov ecx, dword [esp + 0x28]
push esi
mov edx, dword [ecx + 0x24]
push edx
push 0x130c
push ebx
call edi
mov ecx, 0xa
xor eax, eax
lea edi, [esp + 0x9c]
mov dword [esp + 0x6c], 0x138d
mov dword [esp + 0x70], 0x3ee
mov dword [esp + 0x74], 0x3ef
mov dword [esp + 0x78], 0x3f0
mov dword [esp + 0x7c], 0x3f1
mov dword [esp + 0x80], 0x3f2
mov dword [esp + 0x84], 0x3f3
mov dword [esp + 0x88], 0x4bb
mov dword [esp + 0x8c], 0x3f5
mov dword [esp + 0x90], 0x8a1
mov dword [esp + 0x94], 0xfbf
mov dword [esp + 0x98], esi
mov dword [esp + 0xc4], 0xdeb2
rep stosd dword es:[edi], eax
mov ecx, 0xa
lea edi, [esp + 0xf4]
mov dword [esp + 0xc8], 0xdeb3
mov dword [esp + 0xcc], 0xdeb4
mov dword [esp + 0xd0], 0xdeb5
mov dword [esp + 0xd4], 0xdeb6
mov dword [esp + 0xd8], 0xdec1
mov dword [esp + 0xdc], 0xdeac
mov dword [esp + 0xe0], 0xdeab
mov dword [esp + 0xe4], esi
mov dword [esp + 0xe8], 0xdeb0
mov dword [esp + 0xec], esi
mov dword [esp + 0xf0], esi
mov dword [esp + 0x11c], str.Directory
rep stosd dword es:[edi], eax
mov eax, str.Folder
mov dword [esp + 0x120], str.CLSID20D04FE0_3AEA_1069_A2D8_08002B30309D
mov dword [esp + 0x124], str.CLSID208D2C60_3AEA_1069_A2D7_08002B30309D
mov dword [esp + 0x128], str.CLSID450D8FBA_AD25_11D0_98A8_0800361B1103
mov dword [esp + 0x12c], str.CLSID645FF040_5081_101B_9F08_00AA002F954E
mov dword [esp + 0x130], eax
mov dword [esp + 0x134], 0x5475b0
mov dword [esp + 0x138], eax
mov dword [esp + 0x13c], esi
mov dword [esp + 0x140], esi
mov dword [esp + 0x144], esi
mov ecx, 0xb
xor eax, eax
lea edi, [esp + 0x148]
rep stosd dword es:[edi], eax
mov eax, dword [esp + 0x6c]
xor edi, edi
cmp eax, esi
je 0x415ef0
mov dword [esp + 0x10], eax
xor ebx, ebx
mov eax, dword [esp + ebx + 0xc4]
lea ecx, [esp + 0x18]
push eax
push ecx
call fcn.004bc8d0
mov esi, dword [eax]
mov eax, dword [esp + 0x30]
mov edx, dword [esp + 0x18]
add esp, 8
mov ecx, dword [eax + 4]
push edx
push ecx
call ebp
push esi
push eax
call dword [sym.imp.USER32.dll_SetWindowTextW]
lea ecx, [esp + 0x18]
call fcn.00405700
or esi, 0xffffffff
cmp edi, 6
jge 0x415e8e
mov edx, dword [esp + ebx + 0x11c]
push 0
push 1
push ecx
mov ecx, esp
push edx
call fcn.00405730
call fcn.0046ff90
add esp, 0xc
cmp edi, 5
mov esi, eax
jne 0x415e8b
mov ebx, dword [esp + 0x28]
push 0x4bb
mov eax, dword [ebx + 4]
push eax
call ebp
push 0
push esi
push 0xf1
push eax
call dword [sym.imp.USER32.dll_SendMessageW]
mov ecx, dword [ebx + 4]
push 0x4bb
push ecx
call ebp
xor edx, edx
test esi, esi
sete dl
push edx
push eax
call dword [sym.imp.USER32.dll_EnableWindow]
jmp 0x415eba
cmp edi, 6
jne 0x415e97
call fcn.00502ee0
jmp 0x415eb8
cmp edi, 7
jne 0x415eba
mov eax, dword [esp + 0x138]
push 1
push 1
push ecx
mov ecx, esp
push eax
call fcn.00405730
call fcn.0046ff90
add esp, 0xc
mov esi, eax
mov edx, dword [esp + 0x28]
mov ecx, dword [esp + 0x10]
push ecx
mov eax, dword [edx + 4]
push eax
call ebp
push 0
push esi
push 0xf1
push eax
call dword [sym.imp.USER32.dll_SendMessageW]
inc edi
lea ebx, [edi*4]
mov eax, dword [esp + ebx + 0x6c]
test eax, eax
mov dword [esp + 0x10], eax
jne 0x415def
lea ecx, [esp + 0x3c]
call fcn.00405700
lea ecx, [esp + 0x44]
call fcn.00405700
lea ecx, [esp + 0x40]
call fcn.00405700
lea ecx, [esp + 0x24]
call fcn.00405700
lea ecx, [esp + 0x4c]
call fcn.00405700
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x964
ret