Function at 0x42757f
Capabilities:
Get session user name

Disassembly:
push 0x190
mov eax, 0x4844d3
call fcn.0046908a
mov eax, dword [ebp + 8]
mov dword [ebp - 0x17c], eax
xor eax, eax
mov esi, ecx
mov dword [ebp - 0x170], esi
mov dword [ebp - 0x180], eax
mov edi, 0x80
cmp word [0x4abe20], ax
jne 0x427673
push 0xfe
push eax
lea eax, [ebp - 0x16a]
xor ecx, ecx
push eax
mov word [ebp - 0x16c], cx
call fcn.00469330
add esp, 0xc
lea eax, [ebp - 0x178]
push eax
lea eax, [ebp - 0x16c]
push eax
mov dword [ebp - 0x178], edi
call dword [sym.imp.ADVAPI32.dll_GetUserNameW]
test eax, eax
je 0x427673
push 0x48dd08
lea eax, [ebp - 0x16c]
push eax
call dword [sym.imp.KERNEL32.dll_lstrcmpiW]
test eax, eax
jne 0x427660
push str.agentUser
push str.Softwareprojonepodlp_smpcache_
push reloc.WS2_32.dll_bind
lea esi, [ebp - 0x50]
call fcn.0041262b
add esp, 0xc
cmp dword [ebp - 0x3c], 0
jne 0x427633
lea eax, [ebp - 0x16c]
jmp 0x42763f
cmp dword [ebp - 0x38], 8
mov eax, dword [ebp - 0x4c]
jae 0x42763f
lea eax, [ebp - 0x4c]
push edi
push eax
push 0x4abe20
call dword [sym.imp.KERNEL32.dll_lstrcpynW]
push 0
push 1
lea esi, [ebp - 0x50]
call fcn.0040498a
mov esi, dword [ebp - 0x170]
jmp 0x427673
push edi
lea eax, [ebp - 0x16c]
push eax
push 0x4abe20
call dword [sym.imp.KERNEL32.dll_lstrcpynW]
cmp byte [0x4abf20], 0
mov ebx, 0x4abf20
jne 0x4276b4
lea eax, [ebp - 0x19c]
push eax
call fcn.00414860
cmp dword [eax + 0x18], 0x10
pop ecx
jb 0x427699
mov eax, dword [eax + 4]
jmp 0x42769c
add eax, 4
push edi
push eax
push ebx
call dword [sym.imp.KERNEL32.dll_lstrcpynA]
push 0
push 1
lea ecx, [ebp - 0x19c]
call fcn.0040488d
cmp word [0x4abe20], 0
je 0x4277c3
cmp byte [0x4abf20], 0
je 0x4277c3
cmp byte [esi + 8], 7
jne 0x4277c3
push str.i_action
lea ecx, [ebp - 0x19c]
call fcn.00404550
and dword [ebp - 4], 0
sub esp, 0x1c
mov ecx, esp
mov dword [ebp - 0x178], esp
push 0x488f6b
call fcn.00404550
lea eax, [ebp - 0x19c]
push eax
lea eax, [ebp - 0x6c]
push eax
call fcn.004018a9
add esp, 0x24
xor edi, edi
push edi
push 1
lea ecx, [ebp - 0x19c]
mov byte [ebp - 4], 2
call fcn.0040488d
push str.replace
lea eax, [ebp - 0x6c]
call fcn.00405fc8
pop ecx
test al, al
jne 0x42774d
push str.delete
lea eax, [ebp - 0x6c]
call fcn.00405fc8
pop ecx
test al, al
je 0x4277cb
push dword [ebp - 0x170]
mov esi, str.i_key_columns
mov edx, esi
call fcn.0041ff88
cmp byte [eax + 8], 4
jne 0x427794
lea eax, [ebp - 0x50]
push eax
push ecx
push dword [ebp - 0x170]
mov edx, esi
call fcn.0041ff88
pop ecx
push eax
call fcn.0041f0b4
mov dword [ebp - 0x180], 1
mov byte [ebp - 0x171], 0
cmp dword [eax + 0x14], edi
jne 0x42779b
mov byte [ebp - 0x171], 1
test byte [ebp - 0x180], 1
je 0x4277af
push edi
push 1
lea ecx, [ebp - 0x50]
call fcn.0040488d
cmp byte [ebp - 0x171], 0
je 0x4277cb
push edi
push 1
lea ecx, [ebp - 0x6c]
call fcn.0040488d
xor eax, eax
call fcn.0046910d
ret
sub esp, 0x18
mov esi, esp
mov dword [ebp - 0x178], esp
push str.t_client_basic_event
call fcn.0041ec6e
push dword [ebp - 0x170]
mov edx, str.i_dt
mov byte [ebp - 4], 3
call fcn.0041ff88
mov edi, eax
mov byte [ebp - 4], 2
call fcn.0041ef48
sub esp, 0x18
mov esi, esp
mov dword [ebp - 0x178], esp
push ebx
call fcn.0041ec6e
push dword [ebp - 0x170]
mov edx, str.client_unique
mov byte [ebp - 4], 4
call fcn.0041ff88
mov edi, eax
mov byte [ebp - 4], 2
call fcn.0041ef48
push dword [ebp - 0x170]
mov ebx, str.user_name
mov edx, ebx
call fcn.0041ff88
cmp byte [eax + 8], 0
jne 0x42794b
lea edi, [ebp - 0x16c]
call fcn.00427523
mov eax, edi
push eax
mov byte [ebp - 4], 5
call fcn.00416137
pop ecx
test eax, eax
je 0x4278d3
cmp dword [ebp - 0x158], 0
je 0x4278d3
sub esp, 0x18
mov edx, edi
mov esi, esp
mov dword [ebp - 0x178], esp
call fcn.0041ecf0
push dword [ebp - 0x170]
mov edx, ebx
mov byte [ebp - 4], 6
call fcn.0041ff88
mov edi, eax
mov byte [ebp - 4], 5
call fcn.0041ef48
sub esp, 0x18
mov esi, esp
mov dword [ebp - 0x178], esp
push 1
call fcn.0041ec29
push dword [ebp - 0x170]
mov edx, str.i_user_data
mov byte [ebp - 4], 7
call fcn.0041ff88
mov edi, eax
mov byte [ebp - 4], 5
call fcn.0041ef48
xor ebx, ebx
jmp 0x42793a
push 0x4abe20
lea esi, [ebp - 0x50]
call fcn.004045a2
mov eax, esi
push eax
lea eax, [ebp - 0x30]
push eax
mov byte [ebp - 4], 8
call fcn.004012d1
sub esp, 0x10
mov byte [ebp - 4], 9
mov edx, eax
mov esi, esp
mov dword [ebp - 0x178], esp
call fcn.0041ecf0
push dword [ebp - 0x170]
mov edx, ebx
mov byte [ebp - 4], 0xa
call fcn.0041ff88
mov edi, eax
mov byte [ebp - 4], 9
call fcn.0041ef48
xor ebx, ebx
push ebx
push 1
lea ecx, [ebp - 0x30]
call fcn.0040488d
push ebx
push 1
lea esi, [ebp - 0x50]
call fcn.0040498a
lea esi, [ebp - 0x16c]
mov byte [ebp - 4], 2
call fcn.00427adc
jmp 0x42794d
xor ebx, ebx
push dword [ebp - 0x170]
mov edx, str.data_time
call fcn.0041ff88
cmp byte [eax + 8], 0
jne 0x4279e0
push 7
xor eax, eax
mov byte [ebp - 0x34], 0
pop ecx
lea edi, [ebp - 0x33]
rep stosd dword es:[edi], eax
stosw word es:[edi], ax
stosb byte es:[edi], al
lea eax, [ebp - 0x44]
push eax
call dword [sym.imp.KERNEL32.dll_GetLocalTime]
movzx eax, word [ebp - 0x38]
push eax
movzx eax, word [ebp - 0x3a]
push eax
movzx eax, word [ebp - 0x3c]
push eax
movzx eax, word [ebp - 0x3e]
push eax
movzx eax, word [ebp - 0x42]
push eax
movzx eax, word [ebp - 0x44]
push eax
push str._04d__02d__02d__02d:_02d:_02d
lea eax, [ebp - 0x34]
push 0x20
push eax
call dword [sym.imp.SHLWAPI.dll_wnsprintfA]
add esp, 0xc
lea eax, [ebp - 0x34]
mov esi, esp
mov dword [ebp - 0x178], esp
push eax
call fcn.0041ec6e
push dword [ebp - 0x170]
mov edx, str.data_time
mov byte [ebp - 4], 0xb
call fcn.0041ff88
mov edi, eax
mov byte [ebp - 4], 2
call fcn.0041ef48
cmp dword [ebp - 0x17c], ebx
je 0x427ac9
push dword [ebp - 0x17c]
call dword [sym.imp.SHLWAPI.dll_PathFindFileNameW]
push eax
lea esi, [ebp - 0x50]
call fcn.004045a2
mov eax, esi
push eax
lea eax, [ebp - 0x30]
push eax
mov byte [ebp - 4], 0xc
call fcn.004012d1
sub esp, 0x10
mov byte [ebp - 4], 0xd
mov edx, eax
mov esi, esp
mov dword [ebp - 0x178], esp
call fcn.0041ecf0
push dword [ebp - 0x170]
mov edx, str.attach_name
mov byte [ebp - 4], 0xe
call fcn.0041ff88
mov edi, eax
mov byte [ebp - 4], 0xd
call fcn.0041ef48
push ebx
push 1
lea ecx, [ebp - 0x30]
call fcn.0040488d
push ebx
push 1
lea esi, [ebp - 0x50]
mov byte [ebp - 4], 2
call fcn.0040498a
push dword [ebp - 0x17c]
lea esi, [ebp - 0x50]
call fcn.004045a2
mov eax, esi
push eax
lea eax, [ebp - 0x30]
push eax
mov byte [ebp - 4], 0xf
call fcn.004012d1
sub esp, 0x10
mov byte [ebp - 4], 0x10
mov edx, eax
mov esi, esp
mov dword [ebp - 0x178], esp
call fcn.0041ecf0
push dword [ebp - 0x170]
mov edx, str.attachment
mov byte [ebp - 4], 0x11
call fcn.0041ff88
mov edi, eax
mov byte [ebp - 4], 0x10
call fcn.0041ef48
push ebx
push 1
lea ecx, [ebp - 0x30]
call fcn.0040488d
push ebx
push 1
lea esi, [ebp - 0x50]
call fcn.0040498a
push ebx
push 1
lea ecx, [ebp - 0x6c]
call fcn.0040488d
xor eax, eax
inc eax
jmp 0x4277c5