Function at 0x4be4c0
Capabilities:
Get session user name

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x607a1b
mov eax, dword fs:[0]
push eax
sub esp, 0xea8
mov eax, dword [0x698b9c]
xor eax, ebp
mov dword [ebp - 0x18], eax
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov dword [ebp - 0xe84], ecx
push 0xc
call fcn.005c020b
add esp, 4
mov dword [ebp - 0xa34], eax
mov dword [ebp - 4], 0
cmp dword [ebp - 0xa34], 0
je 0x4be536
mov ecx, dword [ebp - 0xe84]
add ecx, 0x148
call fcn.00403cf0
push eax
mov ecx, dword [ebp - 0xa34]
call fcn.004159f0
mov dword [ebp - 0xe88], eax
jmp 0x4be540
mov dword [ebp - 0xe88], 0
mov eax, dword [ebp - 0xe88]
mov dword [ebp - 0xa30], eax
mov dword [ebp - 4], 0xffffffff
mov ecx, dword [ebp - 0xa30]
mov dword [ebp - 0x10], ecx
cmp dword [ebp - 0x10], 0
jne 0x4be569
xor eax, eax
jmp 0x4bf174
mov edx, dword [ebp - 0xe84]
xor eax, eax
cmp dword [edx + 0x64], 0x8f
setne al
mov dword [ebp - 0x420], eax
lea ecx, [ebp - 0x45c]
call fcn.004b4770
mov dword [ebp - 4], 1
mov byte [ebp - 0x41c], 0
push 0x3ff
push 0
lea ecx, [ebp - 0x41b]
push ecx
call fcn.005bfd50
add esp, 0xc
push 0
push str.app_key
push 0x6119b4
lea ecx, [ebp - 0x45c]
call fcn.004042f0
mov dword [ebp - 0x14], eax
push 0
push str.tray
push 0x6119c4
lea ecx, [ebp - 0x45c]
call fcn.004042a0
mov dword [ebp - 0x42c], eax
cmp dword [ebp - 0x14], 0
je 0x4be5f9
mov dword [ebp - 0xe8c], 3
jmp 0x4be616
push 0
push 0x6119cc
push 0x6119d0
lea ecx, [ebp - 0x45c]
call fcn.004042a0
mov dword [ebp - 0xe8c], eax
mov edx, dword [ebp - 0xe8c]
mov dword [ebp - 0x430], edx
cmp dword [ebp - 0x14], 0
jne 0x4be63d
cmp dword [ebp - 0x430], 0
je 0x4be63d
mov dword [ebp - 0xe90], 1
jmp 0x4be647
mov dword [ebp - 0xe90], 0
mov eax, dword [ebp - 0xe90]
mov dword [ebp - 0x424], eax
lea ecx, [ebp - 0x430]
push ecx
push 0x400
lea edx, [ebp - 0x41c]
push edx
call fcn.00408330
add esp, 0xc
cmp dword [ebp - 0x424], 0
je 0x4be6ae
mov dword [ebp - 0x424], 0
mov eax, dword [ebp - 0x430]
push eax
lea ecx, [ebp - 0x41c]
push ecx
lea edx, [ebp - 0x45c]
push edx
call fcn.004bf210
add esp, 0xc
test eax, eax
jne 0x4be6ae
mov dword [ebp - 0x430], 0
jmp 0x4be653
mov dword [ebp - 0x424], 0
push 0
push 0x6119d8
push 0x6119dc
lea ecx, [ebp - 0x45c]
call fcn.004042a0
cmp eax, 1
jne 0x4be7db
mov eax, 0x7c
mov word [ebp - 0x55c], ax
push 0xfe
push 0
lea ecx, [ebp - 0x55a]
push ecx
call fcn.005bfd50
add esp, 0xc
mov dword [ebp - 0x560], 0x7f
lea edx, [ebp - 0x560]
push edx
lea eax, [ebp - 0x55a]
push eax
call dword [sym.imp.ADVAPI32.dll_GetUserNameW]
test eax, eax
je 0x4be7db
push 0x6119e4
lea ecx, [ebp - 0x55a]
push ecx
call fcn.005c209e
add esp, 8
test eax, eax
je 0x4be7db
lea edx, [ebp - 0x55c]
push edx
lea ecx, [ebp - 0xa3c]
call fcn.004b45c0
mov dword [ebp - 0xe94], eax
mov eax, dword [ebp - 0xe94]
mov dword [ebp - 0xe98], eax
mov byte [ebp - 4], 2
mov ecx, dword [ebp - 0xe98]
call fcn.004158c0
push eax
lea ecx, [ebp - 0x41c]
push ecx
call fcn.005c0af0
add esp, 8
mov byte [ebp - 4], 1
lea ecx, [ebp - 0xa3c]
call fcn.00401cd0
mov byte [ebp - 0x570], 0x7c
xor edx, edx
mov dword [ebp - 0x56f], edx
mov dword [ebp - 0x56b], edx
mov dword [ebp - 0x567], edx
mov word [ebp - 0x563], dx
mov byte [ebp - 0x561], dl
lea eax, [ebp - 0x56f]
push eax
call fcn.004c70a0
add esp, 4
lea ecx, [ebp - 0x570]
push ecx
lea edx, [ebp - 0x41c]
push edx
call fcn.005c0af0
add esp, 8
cmp dword [0x69aaa4], 1
jg 0x4be804
lea eax, [ebp - 0x413]
push eax
push 0x6119f4
push 0x5d1
push 0x6119f8
push 1
call fcn.00401310
add esp, 0x14
mov ecx, dword [ebp - 0xe84]
mov byte [ecx + 0x132], 0
cmp dword [ebp - 0x14], 0
je 0x4bea00
mov dword [ebp - 0x57c], 0
push pe_nt_image_headers32
lea ecx, [ebp - 0x578]
call fcn.00402f80
mov byte [ebp - 4], 3
lea ecx, [ebp - 0x574]
call fcn.00404ed0
mov byte [ebp - 4], 4
push 0
push 1
lea edx, [ebp - 0x41c]
push edx
lea ecx, [ebp - 0xc40]
call fcn.004c74f0
mov ecx, eax
call fcn.004c7530
push eax
mov eax, dword [ebp - 0x42c]
push eax
mov ecx, dword [ebp - 0x14]
push ecx
push str._custom_appkey_verify.12x_key_stray_dsn_s
lea edx, [ebp - 0x578]
push edx
call fcn.0045bfc0
add esp, 0x14
push 0
push 0xb9
mov ecx, dword [ebp - 0xe84]
sub ecx, 0x48
call fcn.004bdc60
mov eax, 1
test eax, eax
je 0x4be9d3
mov dword [ebp - 0x584], 0x2710
mov dword [ebp - 0x580], 0xffffffff
lea ecx, [ebp - 0x574]
push ecx
lea ecx, [ebp - 0x578]
call fcn.00403cf0
push eax
mov edx, dword [ebp - 0x10]
push edx
call fcn.004bf2e0
add esp, 0xc
test eax, eax
jne 0x4be979
lea ecx, [ebp - 0x574]
call fcn.00403cf0
push eax
lea ecx, [ebp - 0x598]
call fcn.00405530
mov byte [ebp - 4], 5
push 0xfffffffffffffffe
push 0x611a38
lea ecx, [ebp - 0x598]
call fcn.004056a0
mov dword [ebp - 0x580], eax
cmp dword [ebp - 0x580], 0
jne 0x4be934
mov byte [ebp - 4], 4
lea ecx, [ebp - 0x598]
call fcn.004055a0
jmp 0x4be9d3
cmp dword [ebp - 0x580], 0xffffffff
jne 0x4be950
mov eax, dword [ebp - 0x57c]
add eax, 0x3e8
mov dword [ebp - 0x57c], eax
jmp 0x4be968
push 0
push str.delay
lea ecx, [ebp - 0x598]
call fcn.004056a0
mov dword [ebp - 0x57c], eax
mov byte [ebp - 4], 4
lea ecx, [ebp - 0x598]
call fcn.004055a0
jmp 0x4be98b
mov ecx, dword [ebp - 0x57c]
add ecx, 0x3e8
mov dword [ebp - 0x57c], ecx
mov edx, dword [ebp - 0x580]
push edx
push 0xb8
mov ecx, dword [ebp - 0xe84]
sub ecx, 0x48
call fcn.004bdc60
cmp dword [ebp - 0x57c], 0xea60
jbe 0x4be9bb
mov dword [ebp - 0x57c], 0xea60
mov eax, dword [ebp - 0x584]
add eax, dword [ebp - 0x57c]
push eax
call dword [sym.imp.KERNEL32.dll_Sleep]
jmp 0x4be89a
mov ecx, dword [ebp - 0xe84]
mov byte [ecx + 0x132], 1
mov byte [ebp - 4], 3
lea ecx, [ebp - 0x574]
call fcn.00402fe0
mov byte [ebp - 4], 1
lea ecx, [ebp - 0x578]
call fcn.00402fe0
jmp 0x4bea30
cmp dword [ebp - 0x42c], 2
jne 0x4bea30
mov dword [ebp - 0xc44], 0
mov dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x45c]
call fcn.004b4860
mov eax, dword [ebp - 0xc44]
jmp 0x4bf174
mov ecx, dword [ebp - 0xe84]
add ecx, 0x84
call fcn.00401050
lea edx, [ebp - 0x41c]
push edx
lea eax, [ebp - 0xc48]
push eax
call fcn.004ba4a0
add esp, 8
mov dword [ebp - 0xe9c], eax
mov ecx, dword [ebp - 0xe9c]
mov dword [ebp - 0xea0], ecx
mov byte [ebp - 4], 6
mov edx, dword [ebp - 0xea0]
push edx
mov ecx, dword [ebp - 0xe84]
add ecx, 0x70
call fcn.00404ee0
mov byte [ebp - 4], 1
lea ecx, [ebp - 0xc48]
call fcn.00402fe0
mov ecx, dword [ebp - 0xe84]
add ecx, 0x84
call fcn.00401060
call fcn.004c7780
movzx eax, al
neg eax
sbb eax, eax
add eax, 1
push eax
push 0x611a44
push 0x611a48
lea ecx, [ebp - 0x45c]
call fcn.004042a0
mov dword [0x69c16c], eax
cmp dword [0x69c16c], 0
je 0x4beaf7
cmp dword [0x69aaa4], 2
jg 0x4beaf7
push str.Screen_Dx_is_disabled_
push 0x601
push 0x611a68
push 2
call fcn.00401310
add esp, 0x10
cmp dword [ebp - 0x420], 0
je 0x4beb77
push 0
push 0x611a78
push 0x611a80
lea ecx, [ebp - 0x45c]
call fcn.004042f0
mov dword [ebp - 0x428], eax
cmp dword [ebp - 0x428], 0
je 0x4beb77
mov ecx, dword [ebp - 0xe84]
add ecx, 0x84
call fcn.00401050
mov ecx, dword [ebp - 0x428]
push ecx
mov ecx, dword [ebp - 0xe84]
add ecx, 0x68
call fcn.00403d00
mov ecx, dword [ebp - 0xe84]
add ecx, 0x84
call fcn.00401060
lea edx, [ebp - 0x45c]
push edx
mov ecx, dword [ebp - 0xe84]
sub ecx, 0x48
call fcn.004be120
jmp 0x4bf0fc
push 0
push 0x81
mov ecx, dword [ebp - 0xe84]
sub ecx, 0x48
call fcn.004bdc60
mov eax, 1
test eax, eax
je 0x4bf0fc
push pe_nt_image_headers32
lea ecx, [ebp - 0x5a0]
call fcn.00402f80
mov byte [ebp - 4], 7
push str._reg.12x_c1sn
lea ecx, [ebp - 0x5a0]
call fcn.00403d00
push 0
push 1
lea ecx, [ebp - 0x41c]
push ecx
lea ecx, [ebp - 0xe4c]
call fcn.004c74f0
mov ecx, eax
call fcn.004c7530
push eax
lea ecx, [ebp - 0x5a0]
call fcn.00406b90
push pe_nt_image_headers32
lea ecx, [ebp - 0x59c]
call fcn.00402f80
mov byte [ebp - 4], 8
lea edx, [ebp - 0x59c]
push edx
lea ecx, [ebp - 0x5a0]
call fcn.00403cf0
push eax
mov eax, dword [ebp - 0x10]
push eax
call fcn.004bf2e0
add esp, 0xc
test eax, eax
jne 0x4befda
lea ecx, [ebp - 0x59c]
call fcn.00403cf0
push eax
lea ecx, [ebp - 0x5b8]
call fcn.00405530
mov byte [ebp - 4], 9
push 0
push str.invalid
lea ecx, [ebp - 0x5b8]
call fcn.004056a0
cmp eax, 1
jne 0x4becef
mov ecx, dword [ebp - 0x430]
and ecx, 1
jne 0x4beca3
mov edx, dword [ebp - 0x430]
or edx, 1
mov dword [ebp - 0x430], edx
mov byte [ebp - 4], 8
lea ecx, [ebp - 0x5b8]
call fcn.004055a0
mov byte [ebp - 4], 7
lea ecx, [ebp - 0x59c]
call fcn.00402fe0
mov byte [ebp - 4], 1
lea ecx, [ebp - 0x5a0]
call fcn.00402fe0
jmp 0x4be653
mov eax, dword [ebp - 0x430]
and eax, 2
jne 0x4becef
mov ecx, dword [ebp - 0x430]
or ecx, 2
mov dword [ebp - 0x430], ecx
mov byte [ebp - 4], 8
lea ecx, [ebp - 0x5b8]
call fcn.004055a0
mov byte [ebp - 4], 7
lea ecx, [ebp - 0x59c]
call fcn.00402fe0
mov byte [ebp - 4], 1
lea ecx, [ebp - 0x5a0]
call fcn.00402fe0
jmp 0x4be653
cmp dword [ebp - 0x14], 0
jne 0x4bed1b
cmp dword [ebp - 0x430], 0
je 0x4bed1b
mov edx, dword [ebp - 0x430]
push edx
lea eax, [ebp - 0x41c]
push eax
lea ecx, [ebp - 0x45c]
push ecx
call fcn.004bf190
add esp, 0xc
push 0
push 0x611aa4
lea ecx, [ebp - 0x5b8]
call fcn.00405660
mov dword [ebp - 0x5a4], eax
cmp dword [ebp - 0x5a4], 0
je 0x4befc6
mov edx, dword [ebp - 0x5a4]
movsx eax, byte [edx]
test eax, eax
je 0x4befc6
push 0x48
mov ecx, dword [ebp - 0xe84]
add ecx, 0x148
call fcn.00406bd0
movzx ecx, al
test ecx, ecx
je 0x4bef54
push 0x50
lea ecx, [ebp - 0xa2c]
call fcn.004046a0
mov byte [ebp - 4], 0xa
mov ecx, dword [ebp - 0xe84]
add ecx, 0x148
call fcn.00403cf0
push eax
push 0x611aa8
lea ecx, [ebp - 0x5b8]
call fcn.00405940
push eax
lea ecx, [ebp - 0xa2c]
call fcn.00404c50
mov dword [ebp - 0x5bc], eax
cmp dword [ebp - 0x5bc], 0
je 0x4bef45
mov ecx, dword [ebp - 0xe84]
add ecx, 0x148
call fcn.00403cf0
cmp eax, dword [ebp - 0x5bc]
je 0x4bef45
push 0x611ab0
mov ecx, dword [ebp - 0xe84]
add ecx, 0x148
call fcn.00403d00
mov edx, dword [ebp - 0x5bc]
push edx
mov ecx, dword [ebp - 0xe84]
add ecx, 0x148
call fcn.00406b90
mov ecx, dword [ebp - 0xe84]
add ecx, 0x148
call fcn.00403cf0
push eax
push 0x611abc
push 0x611ac4
lea ecx, [ebp - 0x45c]
call fcn.004b4600
mov eax, dword [ebp - 0x10]
mov dword [ebp - 0xe54], eax
mov ecx, dword [ebp - 0xe54]
mov dword [ebp - 0xe50], ecx
cmp dword [ebp - 0xe50], 0
je 0x4bee6d
push 1
mov edx, dword [ebp - 0xe50]
mov eax, dword [edx]
mov ecx, dword [ebp - 0xe50]
mov edx, dword [eax]
call edx
mov dword [ebp - 0xea4], eax
jmp 0x4bee77
mov dword [ebp - 0xea4], 0
push 0xc
call fcn.005c020b
add esp, 4
mov dword [ebp - 0xe5c], eax
mov byte [ebp - 4], 0xb
cmp dword [ebp - 0xe5c], 0
je 0x4beeb9
mov ecx, dword [ebp - 0xe84]
add ecx, 0x148
call fcn.00403cf0
push eax
mov ecx, dword [ebp - 0xe5c]
call fcn.004159f0
mov dword [ebp - 0xea8], eax
jmp 0x4beec3
mov dword [ebp - 0xea8], 0
mov eax, dword [ebp - 0xea8]
mov dword [ebp - 0xe58], eax
mov byte [ebp - 4], 0xa
mov ecx, dword [ebp - 0xe58]
mov dword [ebp - 0x10], ecx
cmp dword [ebp - 0x10], 0
jne 0x4bef45
mov dword [ebp - 0xe60], 0
mov byte [ebp - 4], 9
lea ecx, [ebp - 0xa2c]
call fcn.00404890
mov byte [ebp - 4], 8
lea ecx, [ebp - 0x5b8]
call fcn.004055a0
mov byte [ebp - 4], 7
lea ecx, [ebp - 0x59c]
call fcn.00402fe0
mov byte [ebp - 4], 1
lea ecx, [ebp - 0x5a0]
call fcn.00402fe0
mov dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x45c]
call fcn.004b4860
mov eax, dword [ebp - 0xe60]
jmp 0x4bf174
mov byte [ebp - 4], 9
lea ecx, [ebp - 0xa2c]
call fcn.00404890
lea edx, [ebp - 0x41c]
push edx
mov eax, dword [ebp - 0x5a4]
push eax
lea ecx, [ebp - 0x45c]
push ecx
mov edx, dword [ebp - 0x10]
push edx
mov ecx, dword [ebp - 0xe84]
sub ecx, 0x48
call fcn.004bf380
test eax, eax
jne 0x4befc6
lea eax, [ebp - 0x45c]
push eax
mov ecx, dword [ebp - 0xe84]
sub ecx, 0x48
call fcn.004be120
mov byte [ebp - 4], 8
lea ecx, [ebp - 0x5b8]
call fcn.004055a0
mov byte [ebp - 4], 7
lea ecx, [ebp - 0x59c]
call fcn.00402fe0
mov byte [ebp - 4], 1
lea ecx, [ebp - 0x5a0]
call fcn.00402fe0
jmp 0x4bf0fc
mov byte [ebp - 4], 8
lea ecx, [ebp - 0x5b8]
call fcn.004055a0
jmp 0x4bf0ce
mov ecx, dword [ebp - 0x10]
mov dword [ebp - 0xe68], ecx
mov edx, dword [ebp - 0xe68]
mov dword [ebp - 0xe64], edx
cmp dword [ebp - 0xe64], 0
je 0x4bf014
push 1
mov eax, dword [ebp - 0xe64]
mov edx, dword [eax]
mov ecx, dword [ebp - 0xe64]
mov eax, dword [edx]
call eax
mov dword [ebp - 0xeac], eax
jmp 0x4bf01e
mov dword [ebp - 0xeac], 0
push 0xc
call fcn.005c020b
add esp, 4
mov dword [ebp - 0xe70], eax
mov byte [ebp - 4], 0xc
cmp dword [ebp - 0xe70], 0
je 0x4bf060
mov ecx, dword [ebp - 0xe84]
add ecx, 0x148
call fcn.00403cf0
push eax
mov ecx, dword [ebp - 0xe70]
call fcn.004159f0
mov dword [ebp - 0xeb0], eax
jmp 0x4bf06a
mov dword [ebp - 0xeb0], 0
mov ecx, dword [ebp - 0xeb0]
mov dword [ebp - 0xe6c], ecx
mov byte [ebp - 4], 8
mov edx, dword [ebp - 0xe6c]
mov dword [ebp - 0x10], edx
cmp dword [ebp - 0x10], 0
jne 0x4bf0ce
mov dword [ebp - 0xe74], 0
mov byte [ebp - 4], 7
lea ecx, [ebp - 0x59c]
call fcn.00402fe0
mov byte [ebp - 4], 1
lea ecx, [ebp - 0x5a0]
call fcn.00402fe0
mov dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x45c]
call fcn.004b4860
mov eax, dword [ebp - 0xe74]
jmp 0x4bf174
push 0x2710
call dword [sym.imp.KERNEL32.dll_Sleep]
mov byte [ebp - 4], 7
lea ecx, [ebp - 0x59c]
call fcn.00402fe0
mov byte [ebp - 4], 1
lea ecx, [ebp - 0x5a0]
call fcn.00402fe0
jmp 0x4beb8c
mov eax, dword [ebp - 0x10]
push eax
mov ecx, dword [ebp - 0xe84]
sub ecx, 0x48
call fcn.004bf5f0
mov ecx, dword [ebp - 0x10]
mov dword [ebp - 0xe7c], ecx
mov edx, dword [ebp - 0xe7c]
mov dword [ebp - 0xe78], edx
cmp dword [ebp - 0xe78], 0
je 0x4bf148
push 1
mov eax, dword [ebp - 0xe78]
mov edx, dword [eax]
mov ecx, dword [ebp - 0xe78]
mov eax, dword [edx]
call eax
mov dword [ebp - 0xeb4], eax
jmp 0x4bf152
mov dword [ebp - 0xeb4], 0
mov dword [ebp - 0xe80], 0
mov dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x45c]
call fcn.004b4860
mov eax, dword [ebp - 0xe80]
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
mov ecx, dword [ebp - 0x18]
xor ecx, ebp
call fcn.005bfcb8
mov esp, ebp
pop ebp
ret