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

Disassembly:
sub esp, 0x964
mov eax, dword [0x4e3a2c]
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.0048eb30
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 [0x4d9544]
lea ecx, [eax - 0xc]
cmp ecx, edx
je 0x411262
add eax, 0xfffffff4
push eax
call dword [sym.imp.KERNEL32.dll_InterlockedDecrement]
test eax, eax
jg 0x411262
mov edx, dword [esp + 0x10]
add edx, 0xfffffff4
push edx
call fcn.004c5432
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 [0x4d9540]
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 [0x4d9540]
mov ebp, dword [sym.imp.KERNEL32.dll_lstrlenA]
mov ecx, str.___HKCU_
mov dword [esp + 0x14], eax
test ecx, ecx
je 0x4112e1
push ecx
call ebp
mov esi, eax
test esi, esi
je 0x4112e1
push esi
lea ecx, [esp + 0x18]
call fcn.004012f0
test eax, eax
je 0x4112e1
mov edx, dword [esp + 0x14]
inc esi
push esi
push str.___HKCU_
push edx
call fcn.004011c0
add esp, 0xc
lea ecx, [esp + 0x14]
push 0xffffffffffffffff
call fcn.00401970
mov eax, dword [0x4d9540]
mov ecx, 0x4da334
test ecx, ecx
mov dword [esp + 0x20], eax
je 0x411329
push ecx
call ebp
mov esi, eax
test esi, esi
je 0x411329
push esi
lea ecx, [esp + 0x24]
call fcn.004012f0
test eax, eax
je 0x411329
mov edx, dword [esp + 0x20]
inc esi
push esi
push 0x4da334
push edx
call fcn.004011c0
add esp, 0xc
lea ecx, [esp + 0x20]
push 0xffffffffffffffff
call fcn.00401970
mov eax, dword [0x4d9540]
lea ecx, [esp + 0x174]
test ecx, ecx
mov dword [esp + 0x1c], eax
je 0x41139f
lea edx, [esp + 0x174]
shr edx, 0x10
jne 0x411361
xor eax, eax
lea ecx, [esp + 0x174]
mov ax, cx
lea ecx, [esp + 0x1c]
push eax
call fcn.0040ff70
jmp 0x41139f
lea edx, [esp + 0x174]
push edx
call dword [sym.imp.KERNEL32.dll_lstrlenW]
mov esi, eax
test esi, esi
je 0x41139f
push esi
lea ecx, [esp + 0x20]
call fcn.004012f0
test eax, eax
je 0x41139f
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.0048eb30
mov edx, dword [0x4d9540]
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.004017b0
lea eax, [esp + 0x30]
lea ecx, [esp + 0x10]
push eax
call fcn.00401200
lea ecx, [esp + 0x30]
call fcn.004014c0
mov ecx, dword [0x4d9540]
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.004017b0
lea ecx, [esp + 0x2c]
push ecx
lea ecx, [esp + 0x38]
call fcn.00401200
lea ecx, [esp + 0x2c]
call fcn.004014c0
mov edx, dword [0x4d9540]
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.004017b0
lea edx, [esp + 0x38]
lea ecx, [esp + 0x24]
push edx
call fcn.00401200
lea ecx, [esp + 0x38]
call fcn.004014c0
mov eax, dword [esp + 0x34]
mov edx, dword [0x4d9544]
lea ecx, [eax - 0xc]
cmp ecx, edx
je 0x411493
mov esi, dword [sym.imp.KERNEL32.dll_InterlockedDecrement]
add eax, 0xfffffff4
push eax
call esi
test eax, eax
jg 0x411499
mov edx, dword [esp + 0x34]
add edx, 0xfffffff4
push edx
call fcn.004c5432
add esp, 4
jmp 0x411499
mov esi, dword [sym.imp.KERNEL32.dll_InterlockedDecrement]
mov eax, dword [esp + 0x10]
mov edx, dword [0x4d9544]
lea ecx, [eax - 0xc]
cmp ecx, edx
je 0x4114c4
add eax, 0xfffffff4
push eax
call esi
test eax, eax
jg 0x4114c4
mov edx, dword [esp + 0x10]
add edx, 0xfffffff4
push edx
call fcn.004c5432
add esp, 4
mov eax, dword [esp + 0x18]
mov edx, dword [0x4d9544]
lea ecx, [eax - 0xc]
cmp ecx, edx
je 0x4114ef
add eax, 0xfffffff4
push eax
call esi
test eax, eax
jg 0x4114ef
mov edx, dword [esp + 0x18]
add edx, 0xfffffff4
push edx
call fcn.004c5432
add esp, 4
mov eax, dword [esp + 0x1c]
mov edx, dword [0x4d9544]
lea ecx, [eax - 0xc]
cmp ecx, edx
je 0x41151a
add eax, 0xfffffff4
push eax
call esi
test eax, eax
jg 0x41151a
mov edx, dword [esp + 0x1c]
add edx, 0xfffffff4
push edx
call fcn.004c5432
add esp, 4
mov eax, dword [esp + 0x20]
mov edx, dword [0x4d9544]
lea ecx, [eax - 0xc]
cmp ecx, edx
je 0x411545
add eax, 0xfffffff4
push eax
call esi
test eax, eax
jg 0x411545
mov edx, dword [esp + 0x20]
add edx, 0xfffffff4
push edx
call fcn.004c5432
add esp, 4
mov eax, dword [esp + 0x14]
mov edx, dword [0x4d9544]
lea ecx, [eax - 0xc]
cmp ecx, edx
je 0x411570
add eax, 0xfffffff4
push eax
call esi
test eax, eax
jg 0x411570
mov edx, dword [esp + 0x14]
add edx, 0xfffffff4
push edx
call fcn.004c5432
add esp, 4
mov eax, dword [0x4d9540]
mov ecx, str.__HKCR_
test ecx, ecx
mov dword [esp + 0x14], eax
je 0x4115b8
push ecx
call ebp
mov esi, eax
test esi, esi
je 0x4115b8
push esi
lea ecx, [esp + 0x18]
call fcn.004012f0
test eax, eax
je 0x4115b8
mov edx, dword [esp + 0x14]
inc esi
push esi
push str.__HKCR_
push edx
call fcn.004011c0
add esp, 0xc
lea ecx, [esp + 0x14]
push 0xffffffffffffffff
call fcn.00401970
lea eax, [esp + 0x18]
push 0xda
push eax
call fcn.0048eb30
mov ecx, dword [0x4d9540]
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.004017b0
lea ecx, [esp + 0x10]
push ecx
lea ecx, [esp + 0x44]
call fcn.00401200
lea ecx, [esp + 0x10]
call fcn.004014c0
mov eax, dword [esp + 0x18]
mov ecx, dword [0x4d9544]
lea edx, [eax - 0xc]
cmp edx, ecx
je 0x411633
add eax, 0xfffffff4
push eax
call dword [sym.imp.KERNEL32.dll_InterlockedDecrement]
test eax, eax
jg 0x411633
mov eax, dword [esp + 0x18]
add eax, 0xfffffff4
push eax
call fcn.004c5432
add esp, 4
mov eax, dword [esp + 0x14]
mov edx, dword [0x4d9544]
lea ecx, [eax - 0xc]
cmp ecx, edx
je 0x411662
add eax, 0xfffffff4
push eax
call dword [sym.imp.KERNEL32.dll_InterlockedDecrement]
test eax, eax
jg 0x411662
mov edx, dword [esp + 0x14]
add edx, 0xfffffff4
push edx
call fcn.004c5432
add esp, 4
mov eax, dword [0x4d9540]
mov ecx, str.__HKLM_
test ecx, ecx
mov dword [esp + 0x14], eax
je 0x4116aa
push ecx
call ebp
mov esi, eax
test esi, esi
je 0x4116aa
push esi
lea ecx, [esp + 0x18]
call fcn.004012f0
test eax, eax
je 0x4116aa
mov edx, dword [esp + 0x14]
inc esi
push esi
push str.__HKLM_
push edx
call fcn.004011c0
add esp, 0xc
lea ecx, [esp + 0x14]
push 0xffffffffffffffff
call fcn.00401970
lea eax, [esp + 0x18]
push 0xda
push eax
call fcn.0048eb30
mov ecx, dword [0x4d9540]
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.004017b0
lea ecx, [esp + 0x10]
push ecx
lea ecx, [esp + 0x48]
call fcn.00401200
lea ecx, [esp + 0x10]
call fcn.004014c0
mov eax, dword [esp + 0x18]
mov ecx, dword [0x4d9544]
lea edx, [eax - 0xc]
cmp edx, ecx
je 0x411725
add eax, 0xfffffff4
push eax
call dword [sym.imp.KERNEL32.dll_InterlockedDecrement]
test eax, eax
jg 0x411725
mov eax, dword [esp + 0x18]
add eax, 0xfffffff4
push eax
call fcn.004c5432
add esp, 4
mov eax, dword [esp + 0x14]
mov edx, dword [0x4d9544]
lea ecx, [eax - 0xc]
cmp ecx, edx
je 0x411754
add eax, 0xfffffff4
push eax
call dword [sym.imp.KERNEL32.dll_InterlockedDecrement]
test eax, eax
jg 0x411754
mov edx, dword [esp + 0x14]
add edx, 0xfffffff4
push edx
call fcn.004c5432
add esp, 4
lea eax, [esp + 0x3c]
push 0x61a81
push eax
call fcn.0048eb30
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 0x4117ba
cmp dword [ecx - 4], esi
jge 0x411817
mov ecx, dword [ecx - 8]
cmp ecx, esi
mov dword [esp + 0x18], ecx
jle 0x4117c7
mov edx, ecx
push edx
lea ecx, [esp + 0x28]
call fcn.004012f0
test eax, eax
je 0x411819
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.00401350
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.0040f900
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.0040f900
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], 0x4da308
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 0x411b20
mov dword [esp + 0x10], eax
xor ebx, ebx
mov eax, dword [esp + ebx + 0xc4]
lea ecx, [esp + 0x18]
push eax
push ecx
call fcn.0048eb30
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.004014c0
or esi, 0xffffffff
cmp edi, 6
jge 0x411abe
mov edx, dword [esp + ebx + 0x11c]
push 0
push 1
push ecx
mov ecx, esp
push edx
call fcn.004014f0
call fcn.004569a0
add esp, 0xc
cmp edi, 5
mov esi, eax
jne 0x411abb
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 0x411aea
cmp edi, 6
jne 0x411ac7
call fcn.004a4270
jmp 0x411ae8
cmp edi, 7
jne 0x411aea
mov eax, dword [esp + 0x138]
push 1
push 1
push ecx
mov ecx, esp
push eax
call fcn.004014f0
call fcn.004569a0
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 0x411a1f
lea ecx, [esp + 0x3c]
call fcn.004014c0
lea ecx, [esp + 0x44]
call fcn.004014c0
lea ecx, [esp + 0x40]
call fcn.004014c0
lea ecx, [esp + 0x24]
call fcn.004014c0
lea ecx, [esp + 0x4c]
call fcn.004014c0
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x964