Function at 0x10149cc
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 0x1014a63
mov eax, dword [ebx]
push 0x10
push ebx
call dword [eax + 0x70]
push 0xa
lea eax, [edi + 0x61c]
push eax
call fcn.0101985a
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 0x1014b0a
push dword [ebp - 0x24c]
push ebx
call dword [eax + 0x18]
mov dword [ebp - 0x22c], eax
test eax, eax
jge 0x1014aaf
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.01019fd4
mov eax, dword [ebp - 0x22c]
jmp 0x10150dd
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 0x1014a91
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 0x1014b3e
jmp 0x1014a8a
lea ecx, [ebp - 0x24c]
push ecx
push ebx
call dword [eax + 0xc]
mov ebx, eax
test ebx, ebx
jge 0x1014b3c
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.01019fd4
mov eax, ebx
jmp 0x10150dd
xor ebx, ebx
mov dword [ebp - 0x22c], ebx
cmp dword [edi + 0x1bf4], ebx
je 0x1014b53
mov dword [esi + 0x1c], 2
lea eax, [edi + 0xbf0]
push ebx
push eax
call fcn.010181d0
test eax, eax
jne 0x1014b8e
push ebx
lea eax, [edi + 0x13f0]
push eax
call fcn.010181d0
test eax, eax
jne 0x1014b8e
push ebx
lea eax, [edi + 0x15ec]
push eax
call fcn.010181d0
test eax, eax
jne 0x1014b8e
mov dword [esi + 0x18], ebx
mov dword [esi + 0x14], ebx
jmp 0x1014ba2
mov eax, dword [ebp + 0x1c]
cmp eax, ebx
je 0x1014b98
mov dword [esi + 0x18], eax
mov eax, dword [ebp + 0x20]
cmp eax, ebx
je 0x1014ba2
mov dword [esi + 0x14], eax
mov eax, dword [ebp + 0x18]
dec eax
cmp eax, 8
ja case.default.0x1014bb2
xor ebx, ebx
inc ebx
jmp dword [eax*4 + 0x10150f0]
mov eax, ebx
push 0
mov dword [esi + 0x20], ebx
mov word [esi + 0x24], ax
push dword [edi + 0x24]
call fcn.010181d0
test eax, eax
jbe 0x1014bdd
push 0xa
push dword [edi + 0x24]
call fcn.0101985a
mov dword [esi + 0x18], eax
push 0
lea eax, [edi + 0xbf0]
push eax
call fcn.010181d0
test eax, eax
ja 0x1014c0d
push 0
lea eax, [edi + 0x13f0]
push eax
call fcn.010181d0
test eax, eax
ja 0x1014c0d
mov dword [esi + 0x14], 0x5a0
jmp 0x1014fdd
mov eax, dword [ebp + 0x20]
mov dword [esi + 0x14], eax
jmp 0x1014fdd
mov eax, ebx
push 0
mov dword [esi + 0x20], ebx
mov word [esi + 0x24], ax
push dword [edi + 0x24]
call fcn.010181d0
test eax, eax
jbe 0x1014bdd
push 0xa
push dword [edi + 0x24]
call fcn.0101985a
imul eax, eax, 0x3c
jmp 0x1014bda
push 0
mov dword [esi + 0x20], ebx
push dword [edi + 0x24]
call fcn.010181d0
test eax, eax
jbe 0x1014c5b
push 0xa
push dword [edi + 0x24]
call fcn.0101985a
jmp 0x1014c6d
lea eax, [edi + 0x224]
push eax
call fcn.0100a800
mov word [esi + 0x26], ax
mov eax, ebx
mov word [esi + 0x24], ax
jmp 0x1014fdd
mov eax, ebx
push 0
mov dword [esi + 0x20], 2
mov word [esi + 0x24], ax
push dword [edi + 0x24]
call fcn.010181d0
test eax, eax
jbe 0x1014c9f
push 0xa
push dword [edi + 0x24]
call fcn.0101985a
mov word [esi + 0x24], ax
lea eax, [edi + 0x224]
push eax
call fcn.0100a800
mov word [esi + 0x26], ax
jmp 0x1014fdd
push 0
push dword [edi + 0x24]
call fcn.010181d0
test eax, eax
jbe 0x1014ee1
push 0xa
push dword [edi + 0x24]
call fcn.0101985a
mov dword [ebp - 0x230], eax
dec eax
cmp eax, 0xb
ja 0x1014d21
lea eax, [edi + 0x224]
push 0
push eax
call fcn.010181d0
test eax, eax
jne 0x1014cf2
mov eax, ebx
jmp 0x1014d03
push 0xa
lea eax, [edi + 0x224]
push eax
call fcn.0101985a
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.0100ae1b
jmp 0x1014d81
cmp dword [edi + 0x24], 0
je 0x1014d8a
push 0
push ebx
push 0x1f2
call fcn.01019fbc
push eax
push dword [edi + 0x24]
call fcn.010181f1
test eax, eax
je 0x1014d55
push 0
push ebx
push 0x1001828
push dword [edi + 0x24]
call fcn.010181f1
test eax, eax
jne 0x1014d8a
push dword [ebp + 0x2c]
lea eax, [edi + 0x420]
push eax
mov dword [esi + 0x20], 3
call fcn.0100ae95
mov ecx, eax
dec ecx
mov eax, ebx
shl eax, cl
mov dword [esi + 0x24], eax
lea eax, [edi + 0x420]
push eax
call fcn.0100aad8
mov word [esi + 0x28], ax
jmp 0x1014fdd
push 0
push ebx
push 0x1d7
call fcn.01019fbc
push eax
push dword [edi + 0x24]
call fcn.010181f1
test eax, eax
je 0x1014eb4
push 0
push ebx
push 0x1001870
push dword [edi + 0x24]
call fcn.010181f1
test eax, eax
je 0x1014eb4
push 0
push ebx
push 0x1d8
call fcn.01019fbc
push eax
push dword [edi + 0x24]
call fcn.010181f1
test eax, eax
je 0x1014ea8
push 0
push ebx
push 0x1001860
push dword [edi + 0x24]
call fcn.010181f1
test eax, eax
je 0x1014ea8
push 0
push ebx
push 0x1d9
call fcn.01019fbc
push eax
push dword [edi + 0x24]
call fcn.010181f1
test eax, eax
je 0x1014e9c
push 0
push ebx
push 0x1001854
push dword [edi + 0x24]
call fcn.010181f1
test eax, eax
je 0x1014e9c
push 0
push ebx
push 0x1da
call fcn.01019fbc
push eax
push dword [edi + 0x24]
call fcn.010181f1
test eax, eax
je 0x1014e90
push 0
push ebx
push 0x1001844
push dword [edi + 0x24]
call fcn.010181f1
test eax, eax
je 0x1014e90
push 0
push ebx
push 0x1db
call fcn.01019fbc
push eax
push dword [edi + 0x24]
call fcn.010181f1
test eax, eax
je 0x1014e84
push 0
push ebx
push 0x1001838
push dword [edi + 0x24]
call fcn.010181f1
test eax, eax
jne 0x1014eba
mov dword [ebp - 0x22c], 5
jmp 0x1014eba
mov dword [ebp - 0x22c], 4
jmp 0x1014eba
mov dword [ebp - 0x22c], 3
jmp 0x1014eba
mov dword [ebp - 0x22c], 2
jmp 0x1014eba
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.0100a800
mov word [esi + 0x26], ax
jmp 0x1014d75
lea eax, [edi + 0x420]
push eax
mov dword [esi + 0x20], 3
call fcn.0100aad8
mov word [esi + 0x28], ax
push 0xa
lea eax, [edi + 0x224]
push eax
call fcn.0101985a
movzx eax, ax
cmp eax, ebx
jbe 0x1014f1c
lea ecx, [eax - 1]
mov eax, ebx
shl eax, cl
mov dword [esi + 0x24], eax
jmp 0x1014fdd
mov dword [esi + 0x24], ebx
jmp 0x1014fdd
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 0x1014f78
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 0x1014fbe
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 0x1014fa5
cmp dword [ebp - 0x248], 0
je 0x1014fbe
push 0x228
call fcn.01019fbc
push eax
mov eax, dword [sym.imp.msvcrt.dll__iob]
add eax, 0x40
push eax
call fcn.01018c64
and dword [esi + 0x20], 0
jmp 0x1014fdd
mov dword [esi + 0x20], 6
jmp 0x1014fdd
mov dword [esi + 0x20], 7
jmp 0x1014fdd
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.010181d0
test eax, eax
ja 0x1015029
push 0
lea eax, [edi + 0xbf0]
push eax
call fcn.010181d0
test eax, eax
jbe 0x1015044
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 0x1015064
push edi
call fcn.0101317a
mov dword [ebp - 0x22c], eax
test eax, eax
jne 0x1014a8a
mov eax, dword [ebp - 0x234]
mov ecx, dword [eax]
push esi
push eax
call dword [ecx + 0xc]
mov esi, eax
test esi, esi
je 0x10150b3
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.01019fd4
push edi
push 0x89
call fcn.01019fbc
push eax
mov eax, dword [sym.imp.msvcrt.dll__iob]
push 0
add eax, 0x40
push ebx
push eax
call fcn.01019e69
add esp, 0x14
jmp 0x10150db
xor eax, eax
jmp 0x10150dd
mov esi, 0x80004005
push esi
call dword [sym.imp.API_MS_Win_Core_ErrorHandling_L1_1_0.dll_SetLastError]
call fcn.01017fa1
mov eax, dword [sym.imp.msvcrt.dll__iob]
push 0x20001
add eax, 0x40
push eax
call fcn.01019fd4
mov eax, esi
mov ecx, dword [ebp - 4]
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.010175b3
leave
ret 0x50