Function at 0x41268f
Capabilities:
Get session user name

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x948
push ebx
push esi
push edi
mov dword [ebp - 0x24c], 0
cmp dword [ebp + 8], 0
jne 0x4126b8
mov ax, 0x10
jmp 0x412ce3
mov eax, dword [ebp + 8]
mov eax, dword [eax + 0x54]
mov dword [ebp - 0xa8], eax
mov eax, dword [0x435e7c]
push eax
mov eax, dword [ebp - 0xa8]
push eax
call fcn.00417220
add esp, 8
mov dword [ebp - 0xac], eax
cmp dword [ebp - 0xac], 0
jne 0x4126f5
mov ax, 2
jmp 0x412ce3
mov eax, dword [ebp - 0xac]
xor ecx, ecx
mov cx, word [eax + 0x44]
test ecx, ecx
jne 0x412712
mov ax, 0x47
jmp 0x412ce3
mov byte [ebp - 0x298], 0
mov byte [ebp - 0xb8], 0
mov byte [ebp - 0x944], 0
mov byte [ebp - 0x2a4], 0
mov byte [ebp - 0x2b4], 0
mov byte [ebp - 0x2f4], 0
mov byte [ebp - 0x44], 0
mov byte [ebp - 0x28c], 0
mov byte [ebp - 0xa4], 0
mov byte [ebp - 0x64], 0
push 0x190
push 0
lea eax, [ebp - 0x484]
push eax
call fcn.00409d20
add esp, 0xc
push 0x190
push 0
lea eax, [ebp - 0x938]
push eax
call fcn.00409d20
add esp, 0xc
push 0x190
push 0
lea eax, [ebp - 0x248]
push eax
call fcn.00409d20
add esp, 0xc
mov eax, dword [ebp - 0xac]
movsx eax, word [eax + 0x5a]
mov ecx, dword [ebp - 0xac]
xor edx, edx
mov dx, word [ecx + eax*2 + 0x46]
push edx
push 0x43202c
lea eax, [ebp - 0x298]
push eax
call fcn.0040ab00
add esp, 0xc
mov eax, dword [ebp - 0xac]
xor ecx, ecx
mov cx, word [eax + 0x42]
push ecx
push 0x432030
lea eax, [ebp - 0x944]
push eax
call fcn.0040ab00
add esp, 0xc
mov eax, dword [ebp - 0xac]
xor ecx, ecx
mov cx, word [eax + 0x44]
push ecx
push 0x432034
lea eax, [ebp - 0xb8]
push eax
call fcn.0040ab00
add esp, 0xc
mov eax, dword [ebp - 0xac]
mov dword [eax + 0x5c], 0
mov eax, dword [ebp - 0xac]
mov word [eax + 0x44], 0
push 0x40
lea eax, [ebp - 0x2f4]
push eax
mov eax, dword [ebp + 8]
push eax
call fcn.00412fa5
mov word [ebp - 4], ax
test dword [ebp - 4], 0xffff
je 0x412847
mov ax, word [ebp - 4]
jmp 0x412ce3
push 0x40
lea eax, [ebp - 0xa4]
push eax
call fcn.0041e00e
add esp, 8
test eax, eax
jne 0x412881
push 0
lea eax, [ebp - 0x64]
push eax
lea eax, [ebp - 0xa4]
push eax
call fcn.0041bc8d
add esp, 0xc
test eax, eax
je 0x412881
mov byte [ebp - 0x64], 0
movsx eax, byte [ebp - 0x64]
test eax, eax
jne 0x4128b4
push 0x40
lea eax, [ebp - 0x64]
push eax
call fcn.0041d59d
add esp, 8
test eax, eax
je 0x4128b4
push 0x432038
lea eax, [ebp - 0x64]
push eax
call fcn.0040a650
add esp, 8
push 0x432040
lea eax, [ebp - 0x2f4]
push eax
call fcn.0040cc40
add esp, 8
test eax, eax
jne 0x4128e4
push 0x432048
lea eax, [ebp - 0xa4]
push eax
call fcn.0040a650
add esp, 8
mov dword [ebp - 0x2a8], 0x40
lea eax, [ebp - 0x2a8]
push eax
lea eax, [ebp - 0x44]
push eax
call dword [sym.imp.ADVAPI32.dll_GetUserNameA]
cmp eax, 1
jne 0x412954
push 0x40
lea eax, [ebp - 0x28c]
push eax
lea eax, [ebp - 0x44]
push eax
call fcn.00419a81
add esp, 0xc
cmp eax, 0xffffffff
jne 0x41293c
push 0x432050
lea eax, [ebp - 0x44]
push eax
call fcn.0040a650
add esp, 8
jmp 0x41294f
lea eax, [ebp - 0x28c]
push eax
lea eax, [ebp - 0x44]
push eax
call fcn.0040a650
add esp, 8
jmp 0x412965
push 0x432058
lea eax, [ebp - 0x44]
push eax
call fcn.0040a650
add esp, 8
mov eax, dword [ebp - 0xac]
mov eax, dword [eax + 0x6c]
push eax
push 0x432060
lea eax, [ebp - 0x2a4]
push eax
call fcn.0040ab00
add esp, 0xc
lea eax, [ebp - 0x64]
push eax
lea eax, [ebp - 0xa4]
push eax
lea eax, [ebp - 0x44]
push eax
lea eax, [ebp - 0x2a4]
push eax
lea eax, [ebp - 0x944]
push eax
lea eax, [ebp - 0xb8]
push eax
lea eax, [ebp - 0x298]
push eax
push 7
push 0x432064
call fcn.004197fc
add esp, 0x24
mov dword [ebp - 0x24c], eax
cmp dword [ebp - 0x24c], 0
jne 0x4129e6
mov eax, dword [ebp - 0xac]
push eax
push 0x4a
call fcn.004171cf
add esp, 8
jmp 0x412ce3
mov eax, dword [ebp - 0x24c]
push eax
lea eax, [ebp - 0x938]
push eax
call fcn.0040a650
add esp, 8
mov eax, dword [ebp - 0x24c]
push eax
call fcn.0040ad9c
add esp, 4
lea eax, [ebp - 0x2b4]
push eax
lea eax, [ebp - 0x938]
push eax
push str.findNextUnit
push 3
push 0x432078
call fcn.004197fc
add esp, 0x14
mov dword [ebp - 0x24c], eax
cmp dword [ebp - 0x24c], 0
jne 0x412a56
mov eax, dword [ebp - 0xac]
push eax
push 0x4a
call fcn.004171cf
add esp, 8
jmp 0x412ce3
mov eax, dword [ebp - 0x24c]
push eax
lea eax, [ebp - 0x248]
push eax
call fcn.0040a650
add esp, 8
mov eax, dword [ebp - 0x24c]
push eax
call fcn.0040ad9c
add esp, 4
lea eax, [ebp - 0x248]
push eax
call fcn.00419994
add esp, 4
mov dword [ebp - 0x24c], eax
cmp dword [ebp - 0x24c], 0
jne 0x412ab3
mov eax, dword [ebp - 0xac]
push eax
push 0x4a
call fcn.004171cf
add esp, 8
jmp 0x412ce3
mov eax, dword [ebp - 0x24c]
push eax
lea eax, [ebp - 0x248]
push eax
call fcn.0040a650
add esp, 8
mov eax, dword [ebp - 0x24c]
push eax
call fcn.0040ad9c
add esp, 4
lea eax, [ebp - 0x484]
push eax
lea eax, [ebp - 0x2f4]
push eax
lea eax, [ebp - 0x248]
push eax
call fcn.00418b9e
add esp, 0xc
mov word [ebp - 4], ax
test dword [ebp - 4], 0xffff
je 0x412b1e
mov eax, dword [ebp - 0xac]
push eax
mov eax, dword [ebp - 4]
push eax
call fcn.004170dc
add esp, 8
jmp 0x412ce3
lea eax, [ebp - 0x484]
push eax
call fcn.004179a7
add esp, 4
mov dword [ebp - 0x24c], eax
cmp dword [ebp - 0x24c], 0
jne 0x412b56
mov eax, dword [ebp - 0xac]
push eax
push 0x42
call fcn.004171cf
add esp, 8
jmp 0x412ce3
lea eax, [ebp - 0x484]
push eax
lea eax, [ebp - 0x614]
push eax
lea eax, [ebp - 0x7a4]
push eax
mov eax, dword [ebp - 0x24c]
push eax
push 3
push 0x43207c
call fcn.004177f3
add esp, 0x18
mov word [ebp - 4], ax
test dword [ebp - 4], 0xffff
je 0x412ba8
mov eax, dword [ebp - 0xac]
push eax
push 0x42
call fcn.004171cf
add esp, 8
jmp 0x412ce3
mov eax, dword [ebp - 0x24c]
push eax
call fcn.0040ad9c
add esp, 4
push 0x432080
lea eax, [ebp - 0x7a4]
push eax
call fcn.0040cc40
add esp, 8
test eax, eax
jne 0x412c04
lea eax, [ebp - 0x614]
push eax
call fcn.0040a36a
add esp, 4
mov word [ebp - 0x948], ax
mov eax, dword [ebp - 0xac]
push eax
mov eax, dword [ebp - 0x948]
push eax
call fcn.004171cf
add esp, 8
jmp 0x412ce3
lea eax, [ebp - 0x298]
push eax
lea eax, [ebp - 0xb8]
push eax
lea eax, [ebp - 0x484]
push eax
push 2
push 0x432088
call fcn.004177f3
add esp, 0x14
mov word [ebp - 4], ax
test dword [ebp - 4], 0xffff
je 0x412c4f
mov eax, dword [ebp - 0xac]
push eax
push 0x42
call fcn.004171cf
add esp, 8
jmp 0x412ce3
mov eax, dword [ebp - 0xac]
movsx eax, word [eax + 0x5a]
mov dword [ebp - 0x7a8], eax
inc dword [ebp - 0x7a8]
mov eax, dword [ebp - 0x7a8]
mov ecx, dword [ebp - 0xac]
mov word [ecx + 0x5a], ax
lea eax, [ebp - 0xb8]
push eax
call fcn.0040a36a
add esp, 4
mov ecx, dword [ebp - 0xac]
mov word [ecx + 0x44], ax
lea eax, [ebp - 0x298]
push eax
call fcn.0040a36a
add esp, 4
mov ecx, dword [ebp - 0x7a8]
mov edx, dword [ebp - 0xac]
mov word [edx + ecx*2 + 0x46], ax
mov eax, dword [ebp - 0xac]
add eax, 0x64
push eax
call fcn.0040ab7a
add esp, 4
mov eax, dword [ebp - 0xac]
mov dword [eax + 0x68], 0x78
mov eax, dword [ebp - 0xac]
push eax
push 0
call fcn.004171cf
add esp, 8
jmp 0x412ce3
pop edi
pop esi
pop ebx
leave
ret 4