Function at 0x439751
Capabilities:
Get session user name

Disassembly:
push 0x190
mov eax, 0x487afd
call fcn.0044465a
mov eax, dword [ebp + 8]
xor edi, edi
mov esi, ecx
mov dword [ebp - 0x170], esi
mov dword [ebp - 0x17c], eax
mov dword [ebp - 0x180], edi
mov ebx, 0x80
cmp word [0x4b9568], di
jne 0x43983d
xor eax, eax
push 0xfe
mov word [ebp - 0x16c], ax
lea eax, [ebp - 0x16a]
push edi
push eax
call fcn.00444cd0
add esp, 0xc
lea eax, [ebp - 0x178]
push eax
lea eax, [ebp - 0x16c]
push eax
mov dword [ebp - 0x178], ebx
call dword [sym.imp.ADVAPI32.dll_GetUserNameW]
test eax, eax
je 0x43983d
push 0x4953fc
lea eax, [ebp - 0x16c]
push eax
call dword [sym.imp.KERNEL32.dll_lstrcmpiW]
test eax, eax
jne 0x43982a
lea eax, [ebp - 0x50]
push eax
mov edx, str.agentUser
mov ecx, 0x48fa18
call fcn.0041dd22
pop ecx
cmp dword [ebp - 0x3c], edi
jne 0x4397fe
lea eax, [ebp - 0x16c]
jmp 0x43980a
cmp dword [ebp - 0x38], 8
mov eax, dword [ebp - 0x4c]
jae 0x43980a
lea eax, [ebp - 0x4c]
push ebx
push eax
push 0x4b9568
call dword [sym.imp.KERNEL32.dll_lstrcpynW]
push edi
push 1
lea esi, [ebp - 0x50]
call fcn.00403d0d
mov esi, dword [ebp - 0x170]
jmp 0x43983d
push ebx
lea eax, [ebp - 0x16c]
push eax
push 0x4b9568
call dword [sym.imp.KERNEL32.dll_lstrcpynW]
cmp byte [0x4b9668], 0
jne 0x43987c
lea eax, [ebp - 0x19c]
push eax
call fcn.00420d7a
cmp dword [eax + 0x18], 0x10
pop ecx
jb 0x43985e
mov eax, dword [eax + 4]
jmp 0x439861
add eax, 4
push ebx
push eax
push 0x4b9668
call dword [sym.imp.KERNEL32.dll_lstrcpynA]
push edi
push 1
lea ecx, [ebp - 0x19c]
call fcn.00403c15
cmp word [0x4b9568], di
je 0x43997d
cmp byte [0x4b9668], 0
je 0x43997d
cmp byte [esi + 8], 7
jne 0x43997d
push str.i_action
lea ecx, [ebp - 0x19c]
call fcn.0040344e
sub esp, 0x1c
mov dword [ebp - 4], edi
mov ecx, esp
mov dword [ebp - 0x178], esp
push 0x48e56b
call fcn.0040344e
lea eax, [ebp - 0x19c]
push eax
lea ebx, [ebp - 0x6c]
call fcn.004015b7
add esp, 0x20
xor ebx, ebx
xor edi, edi
push ebx
inc edi
push edi
lea ecx, [ebp - 0x19c]
mov byte [ebp - 4], 2
call fcn.00403c15
push str.replace
lea eax, [ebp - 0x6c]
call fcn.004034b7
test eax, eax
je 0x439912
push str.delete
lea eax, [ebp - 0x6c]
call fcn.004034b7
test eax, eax
jne 0x439985
push dword [ebp - 0x170]
mov esi, str.i_key_columns
mov edx, esi
call fcn.0042a627
cmp byte [eax + 8], 4
jne 0x439951
push dword [ebp - 0x170]
mov edx, esi
call fcn.0042a627
push eax
lea ecx, [ebp - 0x50]
call fcn.0042985a
mov dword [ebp - 0x180], edi
mov byte [ebp - 0x171], bl
cmp dword [eax + 0x14], ebx
jne 0x439958
mov byte [ebp - 0x171], 1
test byte [ebp - 0x180], 1
je 0x43996b
push ebx
push edi
lea ecx, [ebp - 0x50]
call fcn.00403c15
cmp byte [ebp - 0x171], bl
je 0x439985
push ebx
push edi
lea ecx, [ebp - 0x6c]
call fcn.00403c15
xor eax, eax
call fcn.004446dd
ret
sub esp, 0x18
mov esi, esp
mov dword [ebp - 0x178], esp
push str.t_client_basic_event
call fcn.0042941b
push dword [ebp - 0x170]
mov edx, str.i_dt
mov byte [ebp - 4], 3
call fcn.0042a627
mov edi, eax
mov byte [ebp - 4], 2
call fcn.004296ef
sub esp, 0x18
mov esi, esp
mov dword [ebp - 0x178], esp
push 0x4b9668
call fcn.0042941b
push dword [ebp - 0x170]
mov edx, str.client_unique
mov byte [ebp - 4], 4
call fcn.0042a627
mov edi, eax
mov byte [ebp - 4], 2
call fcn.004296ef
push dword [ebp - 0x170]
mov ebx, str.user_name
mov edx, ebx
call fcn.0042a627
cmp byte [eax + 8], 0
jne 0x439b09
lea edi, [ebp - 0x16c]
call fcn.00411852
mov eax, edi
push eax
mov byte [ebp - 4], 5
call fcn.004229e8
pop ecx
test eax, eax
je 0x439a91
cmp dword [ebp - 0x158], 0
je 0x439a91
sub esp, 0x18
mov edx, edi
mov esi, esp
mov dword [ebp - 0x178], esp
call fcn.0042949c
push dword [ebp - 0x170]
mov edx, ebx
mov byte [ebp - 4], 6
call fcn.0042a627
mov edi, eax
mov byte [ebp - 4], 5
call fcn.004296ef
sub esp, 0x18
mov esi, esp
mov dword [ebp - 0x178], esp
push 1
call fcn.004293d6
push dword [ebp - 0x170]
mov edx, str.i_user_data
mov byte [ebp - 4], 7
call fcn.0042a627
mov edi, eax
mov byte [ebp - 4], 5
call fcn.004296ef
xor ebx, ebx
jmp 0x439af8
push 0x4b9568
lea esi, [ebp - 0x50]
call fcn.004034dc
mov eax, esi
push eax
lea eax, [ebp - 0x30]
push eax
mov byte [ebp - 4], 8
call fcn.0040129f
sub esp, 0x10
mov byte [ebp - 4], 9
mov edx, eax
mov esi, esp
mov dword [ebp - 0x178], esp
call fcn.0042949c
push dword [ebp - 0x170]
mov edx, ebx
mov byte [ebp - 4], 0xa
call fcn.0042a627
mov edi, eax
mov byte [ebp - 4], 9
call fcn.004296ef
xor ebx, ebx
push ebx
push 1
lea ecx, [ebp - 0x30]
call fcn.00403c15
push ebx
push 1
lea esi, [ebp - 0x50]
call fcn.00403d0d
lea esi, [ebp - 0x16c]
mov byte [ebp - 4], 2
call fcn.00413d58
jmp 0x439b0b
xor ebx, ebx
push dword [ebp - 0x170]
mov edx, str.data_time
call fcn.0042a627
cmp byte [eax + 8], 0
jne 0x439b9e
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 0x492ca4
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.0042941b
push dword [ebp - 0x170]
mov edx, str.data_time
mov byte [ebp - 4], 0xb
call fcn.0042a627
mov edi, eax
mov byte [ebp - 4], 2
call fcn.004296ef
cmp dword [ebp - 0x17c], ebx
je 0x439c87
push dword [ebp - 0x17c]
call dword [sym.imp.SHLWAPI.dll_PathFindFileNameW]
push eax
lea esi, [ebp - 0x50]
call fcn.004034dc
mov eax, esi
push eax
lea eax, [ebp - 0x30]
push eax
mov byte [ebp - 4], 0xc
call fcn.0040129f
sub esp, 0x10
mov byte [ebp - 4], 0xd
mov edx, eax
mov esi, esp
mov dword [ebp - 0x178], esp
call fcn.0042949c
push dword [ebp - 0x170]
mov edx, str.attach_name
mov byte [ebp - 4], 0xe
call fcn.0042a627
mov edi, eax
mov byte [ebp - 4], 0xd
call fcn.004296ef
push ebx
push 1
lea ecx, [ebp - 0x30]
call fcn.00403c15
push ebx
push 1
lea esi, [ebp - 0x50]
mov byte [ebp - 4], 2
call fcn.00403d0d
push dword [ebp - 0x17c]
lea esi, [ebp - 0x50]
call fcn.004034dc
mov eax, esi
push eax
lea eax, [ebp - 0x30]
push eax
mov byte [ebp - 4], 0xf
call fcn.0040129f
sub esp, 0x10
mov byte [ebp - 4], 0x10
mov edx, eax
mov esi, esp
mov dword [ebp - 0x178], esp
call fcn.0042949c
push dword [ebp - 0x170]
mov edx, str.attachment
mov byte [ebp - 4], 0x11
call fcn.0042a627
mov edi, eax
mov byte [ebp - 4], 0x10
call fcn.004296ef
push ebx
push 1
lea ecx, [ebp - 0x30]
call fcn.00403c15
push ebx
push 1
lea esi, [ebp - 0x50]
call fcn.00403d0d
push ebx
push 1
lea ecx, [ebp - 0x6c]
call fcn.00403c15
xor eax, eax
inc eax
jmp 0x43997f