Function at 0x1014aab
Capabilities:
Get session user name

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x24c
mov eax, dword [0x1029c7c]
xor eax, ebp
mov dword [ebp - 4], eax
xor ecx, ecx
push ebx
mov ebx, dword [ebp + 0x14]
xor eax, eax
cmp dword [ebp + 0x18], 9
push esi
mov esi, dword [ebp + 0x10]
push edi
mov edi, dword [ebp + 8]
mov dword [ebp - 0x248], eax
mov word [ebp - 0x244], cx
mov word [ebp - 0x242], cx
mov word [ebp - 0x240], cx
mov word [ebp - 0x23e], cx
mov word [ebp - 0x23c], cx
mov word [ebp - 0x23a], cx
mov word [ebp - 0x238], cx
mov word [ebp - 0x236], cx
mov dword [ebp - 0x24c], eax
mov dword [ebp - 0x234], eax
jne 0x1014b42
mov eax, dword [ebx]
push 0x10
push ebx
call dword [eax + 0x70]
push 0xa
lea eax, [edi + 0x61c]
push eax
call fcn.0101985b
mov ecx, dword [ebx]
movzx eax, ax
push 0
push eax
push ebx
call dword [ecx + 0x28]
cmp dword [ebp + 0x28], 0
mov eax, dword [ebx]
lea ecx, [ebp - 0x234]
push ecx
je 0x1014be9
push dword [ebp - 0x24c]
push ebx
call dword [eax + 0x18]
mov dword [ebp - 0x22c], eax
test eax, eax
jge 0x1014b8e
push eax
call dword [sym.imp.API_MS_Win_Core_ErrorHandling_L1_1_0.dll_SetLastError]
mov eax, dword [sym.imp.msvcrt.dll__iob]
push 0x10001
add eax, 0x40
push eax
call fcn.01019fd5
mov eax, dword [ebp - 0x22c]
jmp 0x10151bc
xor eax, eax
push 0x222
push eax
mov word [ebp - 0x228], ax
lea eax, [ebp - 0x226]
push eax
call sub.msvcrt.dll_memset
add esp, 0xc
lea eax, [ebp - 0x230]
push eax
lea eax, [ebp - 0x228]
push eax
mov dword [ebp - 0x230], 0x112
call dword [sym.imp.ADVAPI32.dll_GetUserNameW]
test eax, eax
je 0x1014b70
mov eax, dword [ebx]
lea ecx, [ebp - 0x228]
push ecx
push ebx
call dword [eax + 0x50]
xor ebx, ebx
cmp eax, ebx
mov dword [ebp - 0x22c], eax
jge 0x1014c1d
jmp 0x1014b69
lea ecx, [ebp - 0x24c]
push ecx
push ebx
call dword [eax + 0xc]
mov ebx, eax
test ebx, ebx
jge 0x1014c1b
push ebx
call dword [sym.imp.API_MS_Win_Core_ErrorHandling_L1_1_0.dll_SetLastError]
mov eax, dword [sym.imp.msvcrt.dll__iob]
push 0x10001
add eax, 0x40
push eax
call fcn.01019fd5
mov eax, ebx
jmp 0x10151bc
xor ebx, ebx
mov dword [ebp - 0x22c], ebx
cmp dword [edi + 0x1bf4], ebx
je 0x1014c32
mov dword [esi + 0x1c], 2
lea eax, [edi + 0xbf0]
push ebx
push eax
call fcn.010182b0
test eax, eax
jne 0x1014c6d
push ebx
lea eax, [edi + 0x13f0]
push eax
call fcn.010182b0
test eax, eax
jne 0x1014c6d
push ebx
lea eax, [edi + 0x15ec]
push eax
call fcn.010182b0
test eax, eax
jne 0x1014c6d
mov dword [esi + 0x18], ebx
mov dword [esi + 0x14], ebx
jmp 0x1014c81
mov eax, dword [ebp + 0x1c]
cmp eax, ebx
je 0x1014c77
mov dword [esi + 0x18], eax
mov eax, dword [ebp + 0x20]
cmp eax, ebx
je 0x1014c81
mov dword [esi + 0x14], eax
mov eax, dword [ebp + 0x18]
dec eax
cmp eax, 8
ja case.default.0x1014c91
xor ebx, ebx
inc ebx
jmp dword [eax*4 + 0x10151cf]
mov eax, ebx
push 0
mov dword [esi + 0x20], ebx
mov word [esi + 0x24], ax
push dword [edi + 0x24]
call fcn.010182b0
test eax, eax
jbe 0x1014cbc
push 0xa
push dword [edi + 0x24]
call fcn.0101985b
mov dword [esi + 0x18], eax
push 0
lea eax, [edi + 0xbf0]
push eax
call fcn.010182b0
test eax, eax
ja 0x1014cec
push 0
lea eax, [edi + 0x13f0]
push eax
call fcn.010182b0
test eax, eax
ja 0x1014cec
mov dword [esi + 0x14], 0x5a0
jmp 0x10150bc
mov eax, dword [ebp + 0x20]
mov dword [esi + 0x14], eax
jmp 0x10150bc
mov eax, ebx
push 0
mov dword [esi + 0x20], ebx
mov word [esi + 0x24], ax
push dword [edi + 0x24]
call fcn.010182b0
test eax, eax
jbe 0x1014cbc
push 0xa
push dword [edi + 0x24]
call fcn.0101985b
imul eax, eax, 0x3c
jmp 0x1014cb9
push 0
mov dword [esi + 0x20], ebx
push dword [edi + 0x24]
call fcn.010182b0
test eax, eax
jbe 0x1014d3a
push 0xa
push dword [edi + 0x24]
call fcn.0101985b
jmp 0x1014d4c
lea eax, [edi + 0x224]
push eax
call fcn.0100a900
mov word [esi + 0x26], ax
mov eax, ebx
mov word [esi + 0x24], ax
jmp 0x10150bc
mov eax, ebx
push 0
mov dword [esi + 0x20], 2
mov word [esi + 0x24], ax
push dword [edi + 0x24]
call fcn.010182b0
test eax, eax
jbe 0x1014d7e
push 0xa
push dword [edi + 0x24]
call fcn.0101985b
mov word [esi + 0x24], ax
lea eax, [edi + 0x224]
push eax
call fcn.0100a900
mov word [esi + 0x26], ax
jmp 0x10150bc
push 0
push dword [edi + 0x24]
call fcn.010182b0
test eax, eax
jbe 0x1014fc0
push 0xa
push dword [edi + 0x24]
call fcn.0101985b
mov dword [ebp - 0x230], eax
dec eax
cmp eax, 0xb
ja 0x1014e00
lea eax, [edi + 0x224]
push 0
push eax
call fcn.010182b0
test eax, eax
jne 0x1014dd1
mov eax, ebx
jmp 0x1014de2
push 0xa
lea eax, [edi + 0x224]
push eax
call fcn.0101985b
movzx eax, ax
push dword [ebp - 0x230]
lea ecx, [eax - 1]
mov eax, ebx
shl eax, cl
mov dword [esi + 0x20], 3
mov dword [esi + 0x24], eax
call fcn.0100af1b
jmp 0x1014e60
cmp dword [edi + 0x24], 0
je 0x1014e69
push 0
push ebx
push 0x1f2
call fcn.01019fbd
push eax
push dword [edi + 0x24]
call fcn.010182d1
test eax, eax
je 0x1014e34
push 0
push ebx
push 0x1001838
push dword [edi + 0x24]
call fcn.010182d1
test eax, eax
jne 0x1014e69
push dword [ebp + 0x2c]
lea eax, [edi + 0x420]
push eax
mov dword [esi + 0x20], 3
call fcn.0100af95
mov ecx, eax
dec ecx
mov eax, ebx
shl eax, cl
mov dword [esi + 0x24], eax
lea eax, [edi + 0x420]
push eax
call fcn.0100abd8
mov word [esi + 0x28], ax
jmp 0x10150bc
push 0
push ebx
push 0x1d7
call fcn.01019fbd
push eax
push dword [edi + 0x24]
call fcn.010182d1
test eax, eax
je 0x1014f93
push 0
push ebx
push 0x1001880
push dword [edi + 0x24]
call fcn.010182d1
test eax, eax
je 0x1014f93
push 0
push ebx
push 0x1d8
call fcn.01019fbd
push eax
push dword [edi + 0x24]
call fcn.010182d1
test eax, eax
je 0x1014f87
push 0
push ebx
push 0x1001870
push dword [edi + 0x24]
call fcn.010182d1
test eax, eax
je 0x1014f87
push 0
push ebx
push 0x1d9
call fcn.01019fbd
push eax
push dword [edi + 0x24]
call fcn.010182d1
test eax, eax
je 0x1014f7b
push 0
push ebx
push 0x1001864
push dword [edi + 0x24]
call fcn.010182d1
test eax, eax
je 0x1014f7b
push 0
push ebx
push 0x1da
call fcn.01019fbd
push eax
push dword [edi + 0x24]
call fcn.010182d1
test eax, eax
je 0x1014f6f
push 0
push ebx
push 0x1001854
push dword [edi + 0x24]
call fcn.010182d1
test eax, eax
je 0x1014f6f
push 0
push ebx
push 0x1db
call fcn.01019fbd
push eax
push dword [edi + 0x24]
call fcn.010182d1
test eax, eax
je 0x1014f63
push 0
push ebx
push 0x1001848
push dword [edi + 0x24]
call fcn.010182d1
test eax, eax
jne 0x1014f99
mov dword [ebp - 0x22c], 5
jmp 0x1014f99
mov dword [ebp - 0x22c], 4
jmp 0x1014f99
mov dword [ebp - 0x22c], 3
jmp 0x1014f99
mov dword [ebp - 0x22c], 2
jmp 0x1014f99
mov dword [ebp - 0x22c], ebx
mov ax, word [ebp - 0x22c]
mov word [esi + 0x24], ax
lea eax, [edi + 0x224]
push eax
mov dword [esi + 0x20], 4
call fcn.0100a900
mov word [esi + 0x26], ax
jmp 0x1014e54
lea eax, [edi + 0x420]
push eax
mov dword [esi + 0x20], 3
call fcn.0100abd8
mov word [esi + 0x28], ax
push 0xa
lea eax, [edi + 0x224]
push eax
call fcn.0101985b
movzx eax, ax
cmp eax, ebx
jbe 0x1014ffb
lea ecx, [eax - 1]
mov eax, ebx
shl eax, cl
mov dword [esi + 0x24], eax
jmp 0x10150bc
mov dword [esi + 0x24], ebx
jmp 0x10150bc
lea eax, [ebp - 0x244]
push eax
call dword [sym.imp.API_MS_Win_Core_SysInfo_L1_1_0.dll_GetLocalTime]
mov eax, dword [ebp + 0xc]
cmp dword [eax], 0
jne 0x1015057
movzx eax, word [ebp - 0x244]
movzx ecx, word [ebp - 0x242]
imul eax, eax, 0x64
add eax, ecx
movzx ecx, word [ebp - 0x23e]
imul eax, eax, 0x64
movzx edx, word [ebp + 0x30]
add eax, ecx
movzx ecx, word [ebp + 0x2c]
imul ecx, ecx, 0x64
add ecx, edx
movzx edx, word [ebp + 0x34]
imul ecx, ecx, 0x64
add ecx, edx
cmp ecx, eax
jge 0x101509d
mov dword [ebp - 0x248], ebx
movzx eax, word [ebp - 0x23c]
movzx ecx, word [ebp - 0x23a]
imul eax, eax, 0x3c
movzx edx, word [ebp + 0x3c]
add eax, ecx
movzx ecx, word [ebp + 0x38]
imul ecx, ecx, 0x3c
add ecx, edx
cmp ecx, eax
jb 0x1015084
cmp dword [ebp - 0x248], 0
je 0x101509d
push 0x228
call fcn.01019fbd
push eax
mov eax, dword [sym.imp.msvcrt.dll__iob]
add eax, 0x40
push eax
call fcn.01018c65
and dword [esi + 0x20], 0
jmp 0x10150bc
mov dword [esi + 0x20], 6
jmp 0x10150bc
mov dword [esi + 0x20], 7
jmp 0x10150bc
mov dword [esi + 0x20], 5
mov ax, word [ebp + 0x3c]
mov word [esi + 0x12], ax
mov ax, word [ebp + 0x38]
mov word [esi + 0x10], ax
mov ax, word [ebp + 0x34]
mov word [esi + 8], ax
mov ax, word [ebp + 0x30]
mov word [esi + 6], ax
mov ax, word [ebp + 0x2c]
mov word [esi + 4], ax
push 0
lea eax, [edi + 0xfe8]
push eax
call fcn.010182b0
test eax, eax
ja 0x1015108
push 0
lea eax, [edi + 0xbf0]
push eax
call fcn.010182b0
test eax, eax
jbe 0x1015123
mov ax, word [ebp + 0x48]
or dword [esi + 0x1c], ebx
mov word [esi + 0xe], ax
mov ax, word [ebp + 0x44]
mov word [esi + 0xc], ax
mov ax, word [ebp + 0x40]
mov word [esi + 0xa], ax
add edi, 0x818
cmp word [edi], 0
je 0x1015143
push edi
call fcn.01013259
mov dword [ebp - 0x22c], eax
test eax, eax
jne 0x1014b69
mov eax, dword [ebp - 0x234]
mov ecx, dword [eax]
push esi
push eax
call dword [ecx + 0xc]
mov esi, eax
test esi, esi
je 0x1015192
push esi
call dword [sym.imp.API_MS_Win_Core_ErrorHandling_L1_1_0.dll_SetLastError]
mov eax, dword [sym.imp.msvcrt.dll__iob]
push 0x10001
add eax, 0x40
push eax
call fcn.01019fd5
push edi
push 0x89
call fcn.01019fbd
push eax
mov eax, dword [sym.imp.msvcrt.dll__iob]
push 0
add eax, 0x40
push ebx
push eax
call fcn.01019e6a
add esp, 0x14
jmp 0x10151ba
xor eax, eax
jmp 0x10151bc
mov esi, 0x80004005
push esi
call dword [sym.imp.API_MS_Win_Core_ErrorHandling_L1_1_0.dll_SetLastError]
call fcn.01018081
mov eax, dword [sym.imp.msvcrt.dll__iob]
push 0x20001
add eax, 0x40
push eax
call fcn.01019fd5
mov eax, esi
mov ecx, dword [ebp - 4]
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.01017692
leave
ret 0x50