Function at 0x41a6e0
Capabilities:
Get session user name

Disassembly:
sub esp, 0x224
push ebx
push ebp
push esi
lea eax, [esp + 0x14]
push edi
push eax
xor edi, edi
push 1
push 0xf01ff
mov dword [esp + 0x1c], edi
mov dword [esp + 0x24], edi
call dword [sym.imp.KERNEL32.dll_GetCurrentThread]
push eax
call dword [sym.imp.ADVAPI32.dll_OpenThreadToken]
push 0x4451f4
call fcn.00427d30
mov ebx, eax
add esp, 4
cmp ebx, edi
mov dword [esp + 0x20], ebx
jne 0x41a745
call dword [sym.imp.KERNEL32.dll_GetLastError]
push eax
push 0x44e9e8
call fcn.004243e0
add esp, 8
xor eax, eax
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x224
ret
mov esi, dword [sym.imp.KERNEL32.dll_GetProcAddress]
push 0x44e9dc
push ebx
call esi
mov ebp, eax
cmp ebp, edi
jne 0x41a767
call dword [sym.imp.KERNEL32.dll_GetLastError]
push eax
push 0x44e9a8
jmp 0x41a7a1
push 0x44e990
push ebx
call esi
cmp eax, edi
mov dword [esp + 0x1c], eax
jne 0x41a785
call dword [sym.imp.KERNEL32.dll_GetLastError]
push eax
push 0x44e95c
jmp 0x41a7a1
push 0x44e94c
push ebx
call esi
cmp eax, edi
mov dword [esp + 0x24], eax
jne 0x41a7bd
call dword [sym.imp.KERNEL32.dll_GetLastError]
push eax
push 0x44e918
call fcn.004243e0
add esp, 8
push ebx
call dword [sym.imp.KERNEL32.dll_FreeLibrary]
pop edi
pop esi
pop ebp
xor eax, eax
pop ebx
add esp, 0x224
ret
mov ebx, dword [esp + 0x23c]
push 0x44e914
mov esi, 0x44e910
lea eax, [ebx + 4]
push eax
mov dword [esp + 0x1c], eax
call fcn.00430de0
add esp, 8
test eax, eax
je 0x41a7e6
xor esi, esi
jmp 0x41a7fa
lea edi, [ebx + 0x20c]
push edi
call dword [sym.imp.KERNEL32.dll_lstrlenA]
cmp eax, 1
jle 0x41a7fa
mov esi, edi
mov eax, dword [0x45734c]
mov edi, 2
test eax, eax
jne 0x41a80d
mov edi, 3
mov edx, dword [esp + 0x14]
lea ecx, [esp + 0x10]
push ecx
add ebx, 0x108
push 0
push edi
push ebx
push esi
push edx
mov dword [esp + 0x40], ebx
call ebp
test eax, eax
jne 0x41a8a5
call dword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 0x522
jne 0x41a87b
push 1
push 0x44e900
call fcn.0041a620
add esp, 8
test eax, eax
jne 0x41a860
call dword [sym.imp.KERNEL32.dll_GetLastError]
push eax
push 0x44e8dc
call fcn.004243e0
add esp, 8
mov ecx, dword [esp + 0x14]
lea eax, [esp + 0x10]
push eax
push 0
push edi
push ebx
push esi
push ecx
call ebp
test eax, eax
jne 0x41a8a5
call dword [sym.imp.KERNEL32.dll_GetLastError]
test eax, eax
je 0x41a8a5
push eax
push 0x44e8c4
call fcn.004243e0
mov edx, dword [esp + 0x28]
add esp, 8
push edx
call dword [sym.imp.KERNEL32.dll_FreeLibrary]
pop edi
pop esi
pop ebp
xor eax, eax
pop ebx
add esp, 0x224
ret
mov eax, dword [esp + 0x10]
push eax
call dword [esp + 0x20]
test eax, eax
jne 0x41a8ed
call dword [sym.imp.KERNEL32.dll_GetLastError]
push eax
push 0x44e898
call fcn.004243e0
mov eax, dword [esp + 0x18]
add esp, 8
test eax, eax
je 0x41a8d5
push eax
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov ecx, dword [esp + 0x20]
push ecx
call dword [sym.imp.KERNEL32.dll_FreeLibrary]
pop edi
pop esi
pop ebp
xor eax, eax
pop ebx
add esp, 0x224
ret
mov ebp, dword [esp + 0x238]
lea ebx, [ebp + 0x28f4]
push ebx
call dword [sym.imp.KERNEL32.dll_lstrlenA]
test eax, eax
je 0x41a90e
cmp byte [ebx], 0x2e
jne 0x41a9a9
mov dl, byte [0x456160]
mov ecx, pe_nt_image_headers32
xor eax, eax
lea edi, [esp + 0x2d]
mov byte [esp + 0x2c], dl
mov dword [esp + 0x1c], 0x104
rep stosd dword es:[edi], eax
stosw word es:[edi], ax
stosb byte es:[edi], al
lea eax, [esp + 0x1c]
lea ecx, [esp + 0x2c]
push eax
push ecx
call dword [sym.imp.ADVAPI32.dll_GetUserNameA]
push 0x104
lea edx, [esp + 0x30]
push ebx
push edx
push 0
call fcn.0041b760
add esp, 0x10
test eax, eax
jne 0x41a9a9
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov ebx, eax
mov al, byte [0x456160]
mov byte [esp + 0x130], al
mov ecx, pe_nt_image_headers32
xor eax, eax
lea edi, [esp + 0x131]
rep stosd dword es:[edi], eax
lea ecx, [esp + 0x2c]
lea edx, [esp + 0x130]
stosw word es:[edi], ax
push ecx
push 0x44e870
push edx
stosb byte es:[edi], al
call dword [sym.imp.USER32.dll_wsprintfA]
lea eax, [esp + 0x13c]
push ebx
push eax
call fcn.004243e0
add esp, 0x14
mov eax, dword [0x4563bc]
xor ebx, ebx
cmp eax, ebx
je 0x41a9c3
push esi
push ebp
call fcn.0041b7d0
add esp, 8
mov dword [0x4563a8], eax
cmp dword [0x456438], ebx
je 0x41aa2f
cmp esi, ebx
je 0x41aa07
push esi
call dword [sym.imp.KERNEL32.dll_lstrlenA]
cmp eax, 1
jle 0x41aa07
lea ecx, [esp + 0x2c]
push esi
push ecx
call dword [sym.imp.KERNEL32.dll_lstrcpyA]
mov esi, dword [sym.imp.KERNEL32.dll_lstrcatA]
lea edx, [esp + 0x2c]
push 0x445344
push edx
call esi
mov eax, dword [esp + 0x14]
lea ecx, [esp + 0x2c]
push eax
push ecx
call esi
jmp 0x41aa17
mov edx, dword [esp + 0x14]
lea eax, [esp + 0x2c]
push edx
push eax
call dword [sym.imp.KERNEL32.dll_lstrcpyA]
mov ecx, dword [esp + 0x28]
lea edx, [esp + 0x2c]
push ecx
push edx
push ebp
call fcn.0041ba10
add esp, 0xc
mov dword [0x4563ac], eax
mov dword [0x4563a0], ebx
xor esi, esi
mov eax, dword [esi*4 + 0x44e710]
mov ecx, dword [esi*4 + 0x44e6f4]
push eax
push ecx
push ebp
call fcn.0041b400
add esp, 0xc
test eax, eax
jne 0x41ab07
inc esi
cmp esi, 7
jb 0x41aa37
call fcn.0041b1c0
mov edi, eax
call dword [esp + 0x24]
test eax, eax
jne 0x41aa81
call dword [sym.imp.KERNEL32.dll_GetLastError]
push eax
push 0x44e858
call fcn.004243e0
add esp, 8
cmp dword [0x4563ac], ebx
jne 0x41aac3
cmp dword [0x456438], ebx
je 0x41aac3
cmp dword [0x45734c], ebx
jne 0x41aac3
mov edx, dword [esp + 0x14]
lea eax, [esp + 0x130]
push edx
push 0x44e79c
push eax
call dword [sym.imp.USER32.dll_wsprintfA]
lea ecx, [esp + 0x13c]
push 5
push ecx
call fcn.004243e0
add esp, 0x14
mov eax, dword [esp + 0x18]
mov esi, dword [sym.imp.KERNEL32.dll_CloseHandle]
cmp eax, ebx
je 0x41aae4
push eax
push ebx
call dword [sym.imp.ADVAPI32.dll_SetThreadToken]
mov edx, dword [esp + 0x18]
push edx
call esi
mov dword [esp + 0x18], ebx
mov eax, dword [esp + 0x10]
cmp eax, ebx
je 0x41aaef
push eax
call esi
mov eax, dword [esp + 0x20]
push eax
call dword [sym.imp.KERNEL32.dll_FreeLibrary]
mov eax, edi
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x224
ret
cmp esi, ebx
jne 0x41ab15
mov dword [0x4563a0], 1
mov edi, 1
jmp 0x41aa65