Function at 0x4207ef
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 0x420818
mov ax, 0x10
jmp 0x420e43
mov eax, dword [ebp + 8]
mov eax, dword [eax + 0x54]
mov dword [ebp - 0xa8], eax
mov eax, dword [0x4543dc]
push eax
mov eax, dword [ebp - 0xa8]
push eax
call fcn.00425380
add esp, 8
mov dword [ebp - 0xac], eax
cmp dword [ebp - 0xac], 0
jne 0x420855
mov ax, 2
jmp 0x420e43
mov eax, dword [ebp - 0xac]
xor ecx, ecx
mov cx, word [eax + 0x44]
test ecx, ecx
jne 0x420872
mov ax, 0x47
jmp 0x420e43
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.0042f0a0
add esp, 0xc
push 0x190
push 0
lea eax, [ebp - 0x938]
push eax
call fcn.0042f0a0
add esp, 0xc
push 0x190
push 0
lea eax, [ebp - 0x248]
push eax
call fcn.0042f0a0
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 0x44d5a4
lea eax, [ebp - 0x298]
push eax
call fcn.0042f1df
add esp, 0xc
mov eax, dword [ebp - 0xac]
xor ecx, ecx
mov cx, word [eax + 0x42]
push ecx
push 0x44d5a8
lea eax, [ebp - 0x944]
push eax
call fcn.0042f1df
add esp, 0xc
mov eax, dword [ebp - 0xac]
xor ecx, ecx
mov cx, word [eax + 0x44]
push ecx
push 0x44d5ac
lea eax, [ebp - 0xb8]
push eax
call fcn.0042f1df
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.00421105
mov word [ebp - 4], ax
test dword [ebp - 4], 0xffff
je 0x4209a7
mov ax, word [ebp - 4]
jmp 0x420e43
push 0x40
lea eax, [ebp - 0xa4]
push eax
call fcn.0042c16e
add esp, 8
test eax, eax
jne 0x4209e1
push 0
lea eax, [ebp - 0x64]
push eax
lea eax, [ebp - 0xa4]
push eax
call fcn.00429ded
add esp, 0xc
test eax, eax
je 0x4209e1
mov byte [ebp - 0x64], 0
movsx eax, byte [ebp - 0x64]
test eax, eax
jne 0x420a14
push 0x40
lea eax, [ebp - 0x64]
push eax
call fcn.0042b6fd
add esp, 8
test eax, eax
je 0x420a14
push 0x44d5b0
lea eax, [ebp - 0x64]
push eax
call fcn.0042fbf0
add esp, 8
push 0x44d5b8
lea eax, [ebp - 0x2f4]
push eax
call fcn.0042fd20
add esp, 8
test eax, eax
jne 0x420a44
push 0x44d5c0
lea eax, [ebp - 0xa4]
push eax
call fcn.0042fbf0
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 0x420ab4
push 0x40
lea eax, [ebp - 0x28c]
push eax
lea eax, [ebp - 0x44]
push eax
call fcn.00427be1
add esp, 0xc
cmp eax, 0xffffffff
jne 0x420a9c
push 0x44d5c8
lea eax, [ebp - 0x44]
push eax
call fcn.0042fbf0
add esp, 8
jmp 0x420aaf
lea eax, [ebp - 0x28c]
push eax
lea eax, [ebp - 0x44]
push eax
call fcn.0042fbf0
add esp, 8
jmp 0x420ac5
push 0x44d5d0
lea eax, [ebp - 0x44]
push eax
call fcn.0042fbf0
add esp, 8
mov eax, dword [ebp - 0xac]
mov eax, dword [eax + 0x6c]
push eax
push 0x44d5d8
lea eax, [ebp - 0x2a4]
push eax
call fcn.0042f1df
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 0x44d5dc
call fcn.0042795c
add esp, 0x24
mov dword [ebp - 0x24c], eax
cmp dword [ebp - 0x24c], 0
jne 0x420b46
mov eax, dword [ebp - 0xac]
push eax
push 0x4a
call fcn.0042532f
add esp, 8
jmp 0x420e43
mov eax, dword [ebp - 0x24c]
push eax
lea eax, [ebp - 0x938]
push eax
call fcn.0042fbf0
add esp, 8
mov eax, dword [ebp - 0x24c]
push eax
call fcn.004306be
add esp, 4
lea eax, [ebp - 0x2b4]
push eax
lea eax, [ebp - 0x938]
push eax
push str.findNextUnit
push 3
push 0x44d5f0
call fcn.0042795c
add esp, 0x14
mov dword [ebp - 0x24c], eax
cmp dword [ebp - 0x24c], 0
jne 0x420bb6
mov eax, dword [ebp - 0xac]
push eax
push 0x4a
call fcn.0042532f
add esp, 8
jmp 0x420e43
mov eax, dword [ebp - 0x24c]
push eax
lea eax, [ebp - 0x248]
push eax
call fcn.0042fbf0
add esp, 8
mov eax, dword [ebp - 0x24c]
push eax
call fcn.004306be
add esp, 4
lea eax, [ebp - 0x248]
push eax
call fcn.00427af4
add esp, 4
mov dword [ebp - 0x24c], eax
cmp dword [ebp - 0x24c], 0
jne 0x420c13
mov eax, dword [ebp - 0xac]
push eax
push 0x4a
call fcn.0042532f
add esp, 8
jmp 0x420e43
mov eax, dword [ebp - 0x24c]
push eax
lea eax, [ebp - 0x248]
push eax
call fcn.0042fbf0
add esp, 8
mov eax, dword [ebp - 0x24c]
push eax
call fcn.004306be
add esp, 4
lea eax, [ebp - 0x484]
push eax
lea eax, [ebp - 0x2f4]
push eax
lea eax, [ebp - 0x248]
push eax
call fcn.00426cfe
add esp, 0xc
mov word [ebp - 4], ax
test dword [ebp - 4], 0xffff
je 0x420c7e
mov eax, dword [ebp - 0xac]
push eax
mov eax, dword [ebp - 4]
push eax
call fcn.0042523c
add esp, 8
jmp 0x420e43
lea eax, [ebp - 0x484]
push eax
call fcn.00425b07
add esp, 4
mov dword [ebp - 0x24c], eax
cmp dword [ebp - 0x24c], 0
jne 0x420cb6
mov eax, dword [ebp - 0xac]
push eax
push 0x42
call fcn.0042532f
add esp, 8
jmp 0x420e43
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 0x44d5f4
call fcn.00425953
add esp, 0x18
mov word [ebp - 4], ax
test dword [ebp - 4], 0xffff
je 0x420d08
mov eax, dword [ebp - 0xac]
push eax
push 0x42
call fcn.0042532f
add esp, 8
jmp 0x420e43
mov eax, dword [ebp - 0x24c]
push eax
call fcn.004306be
add esp, 4
push 0x44d5f8
lea eax, [ebp - 0x7a4]
push eax
call fcn.0042fd20
add esp, 8
test eax, eax
jne 0x420d64
lea eax, [ebp - 0x614]
push eax
call fcn.0042f6c2
add esp, 4
mov word [ebp - 0x948], ax
mov eax, dword [ebp - 0xac]
push eax
mov eax, dword [ebp - 0x948]
push eax
call fcn.0042532f
add esp, 8
jmp 0x420e43
lea eax, [ebp - 0x298]
push eax
lea eax, [ebp - 0xb8]
push eax
lea eax, [ebp - 0x484]
push eax
push 2
push 0x44d600
call fcn.00425953
add esp, 0x14
mov word [ebp - 4], ax
test dword [ebp - 4], 0xffff
je 0x420daf
mov eax, dword [ebp - 0xac]
push eax
push 0x42
call fcn.0042532f
add esp, 8
jmp 0x420e43
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.0042f6c2
add esp, 4
mov ecx, dword [ebp - 0xac]
mov word [ecx + 0x44], ax
lea eax, [ebp - 0x298]
push eax
call fcn.0042f6c2
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.00431563
add esp, 4
mov eax, dword [ebp - 0xac]
mov dword [eax + 0x68], 0x78
mov eax, dword [ebp - 0xac]
push eax
push 0
call fcn.0042532f
add esp, 8
jmp 0x420e43
pop edi
pop esi
pop ebx
leave
ret 4