Function at 0x41a820
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 0x4461f4
call fcn.00427f30
mov ebx, eax
add esp, 4
cmp ebx, edi
mov dword [esp + 0x20], ebx
jne 0x41a885
call dword [sym.imp.KERNEL32.dll_GetLastError]
push eax
push 0x44f9f4
call fcn.00424580
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 0x44f9e8
push ebx
call esi
mov ebp, eax
cmp ebp, edi
jne 0x41a8a7
call dword [sym.imp.KERNEL32.dll_GetLastError]
push eax
push 0x44f9b4
jmp 0x41a8e1
push 0x44f99c
push ebx
call esi
cmp eax, edi
mov dword [esp + 0x1c], eax
jne 0x41a8c5
call dword [sym.imp.KERNEL32.dll_GetLastError]
push eax
push 0x44f968
jmp 0x41a8e1
push 0x44f958
push ebx
call esi
cmp eax, edi
mov dword [esp + 0x24], eax
jne 0x41a8fd
call dword [sym.imp.KERNEL32.dll_GetLastError]
push eax
push 0x44f924
call fcn.00424580
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 0x44f920
mov esi, 0x44f91c
lea eax, [ebx + 4]
push eax
mov dword [esp + 0x1c], eax
call fcn.00431340
add esp, 8
test eax, eax
je 0x41a926
xor esi, esi
jmp 0x41a93a
lea edi, [ebx + 0x20c]
push edi
call dword [sym.imp.KERNEL32.dll_lstrlenA]
cmp eax, 1
jle 0x41a93a
mov esi, edi
mov eax, dword [0x4583dc]
mov edi, 2
test eax, eax
jne 0x41a94d
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 0x41a9e5
call dword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 0x522
jne 0x41a9bb
push 1
push 0x44f90c
call fcn.0041a760
add esp, 8
test eax, eax
jne 0x41a9a0
call dword [sym.imp.KERNEL32.dll_GetLastError]
push eax
push 0x44f8e8
call fcn.00424580
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 0x41a9e5
call dword [sym.imp.KERNEL32.dll_GetLastError]
test eax, eax
je 0x41a9e5
push eax
push 0x44f8d0
call fcn.00424580
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 0x41aa2d
call dword [sym.imp.KERNEL32.dll_GetLastError]
push eax
push 0x44f8a4
call fcn.00424580
mov eax, dword [esp + 0x18]
add esp, 8
test eax, eax
je 0x41aa15
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 0x41aa4e
cmp byte [ebx], 0x2e
jne 0x41aae9
mov dl, byte [0x4571f0]
mov ecx, 0x40
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.0041b8a0
add esp, 0x10
test eax, eax
jne 0x41aae9
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov ebx, eax
mov al, byte [0x4571f0]
mov byte [esp + 0x130], al
mov ecx, 0x40
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 0x44f87c
push edx
stosb byte es:[edi], al
call dword [sym.imp.USER32.dll_wsprintfA]
lea eax, [esp + 0x13c]
push ebx
push eax
call fcn.00424580
add esp, 0x14
mov eax, dword [0x45744c]
xor ebx, ebx
cmp eax, ebx
je 0x41ab03
push esi
push ebp
call fcn.0041b910
add esp, 8
mov dword [0x457438], eax
cmp dword [0x4574c8], ebx
je 0x41ab6f
cmp esi, ebx
je 0x41ab47
push esi
call dword [sym.imp.KERNEL32.dll_lstrlenA]
cmp eax, 1
jle 0x41ab47
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 0x446350
push edx
call esi
mov eax, dword [esp + 0x14]
lea ecx, [esp + 0x2c]
push eax
push ecx
call esi
jmp 0x41ab57
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.0041bb50
add esp, 0xc
mov dword [0x45743c], eax
mov dword [0x457430], ebx
xor esi, esi
mov eax, dword [esi*4 + 0x44f71c]
mov ecx, dword [esi*4 + 0x44f700]
push eax
push ecx
push ebp
call fcn.0041b540
add esp, 0xc
test eax, eax
jne 0x41ac47
inc esi
cmp esi, 7
jb 0x41ab77
call fcn.0041b300
mov edi, eax
call dword [esp + 0x24]
test eax, eax
jne 0x41abc1
call dword [sym.imp.KERNEL32.dll_GetLastError]
push eax
push 0x44f864
call fcn.00424580
add esp, 8
cmp dword [0x45743c], ebx
jne 0x41ac03
cmp dword [0x4574c8], ebx
je 0x41ac03
cmp dword [0x4583dc], ebx
jne 0x41ac03
mov edx, dword [esp + 0x14]
lea eax, [esp + 0x130]
push edx
push 0x44f7a8
push eax
call dword [sym.imp.USER32.dll_wsprintfA]
lea ecx, [esp + 0x13c]
push 5
push ecx
call fcn.00424580
add esp, 0x14
mov eax, dword [esp + 0x18]
mov esi, dword [sym.imp.KERNEL32.dll_CloseHandle]
cmp eax, ebx
je 0x41ac24
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 0x41ac2f
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 0x41ac55
mov dword [0x457430], 1
mov edi, 1
jmp 0x41aba5