Function at 0x10032515
Capabilities:
Get session user name

Disassembly:
push 0x194
mov eax, 0x100519b9
call fcn.10037d5a
mov eax, dword [ebp + 8]
xor edi, edi
mov dword [ebp - 0x180], eax
mov eax, dword [ebp + 0xc]
mov esi, ecx
mov dword [ebp - 0x170], esi
mov dword [ebp - 0x17c], eax
mov dword [ebp - 0x184], edi
mov ebx, 0x80
cmp word [0x1006e058], di
jne 0x1003260f
xor eax, eax
push 0xfe
mov word [ebp - 0x16c], ax
lea eax, [ebp - 0x16a]
push edi
push eax
call fcn.10038cf0
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 0x1003260f
push 0x1005d238
lea eax, [ebp - 0x16c]
push eax
call dword [sym.imp.KERNEL32.dll_lstrcmpiW]
test eax, eax
jne 0x100325fc
push str.agentUser
push reloc.WS2_32.dll_bind
mov edx, str.Softwareprojonepodlp_smpcache_
lea ecx, [ebp - 0x50]
call fcn.1002d927
pop ecx
pop ecx
cmp dword [ebp - 0x3c], edi
jne 0x100325d0
lea eax, [ebp - 0x16c]
jmp 0x100325dc
cmp dword [ebp - 0x38], 8
mov eax, dword [ebp - 0x4c]
jae 0x100325dc
lea eax, [ebp - 0x4c]
push ebx
push eax
push 0x1006e058
call dword [sym.imp.KERNEL32.dll_lstrcpynW]
push edi
push 1
lea esi, [ebp - 0x50]
call fcn.100021ef
mov esi, dword [ebp - 0x170]
jmp 0x1003260f
push ebx
lea eax, [ebp - 0x16c]
push eax
push 0x1006e058
call dword [sym.imp.KERNEL32.dll_lstrcpynW]
cmp byte [0x1006e158], 0
jne 0x1003264e
lea eax, [ebp - 0x1a0]
push eax
call fcn.1001c65a
cmp dword [eax + 0x18], 0x10
pop ecx
jb 0x10032630
mov eax, dword [eax + 4]
jmp 0x10032633
add eax, 4
push ebx
push eax
push 0x1006e158
call dword [sym.imp.KERNEL32.dll_lstrcpynA]
push edi
push 1
lea ecx, [ebp - 0x1a0]
call fcn.100020f3
cmp word [0x1006e058], di
je 0x1003275f
cmp byte [0x1006e158], 0
je 0x1003275f
cmp dword [ebp - 0x180], edi
je 0x1003275f
cmp byte [esi + 8], 7
jne 0x1003275f
push str.i_action
lea ecx, [ebp - 0x1a0]
call fcn.10001e3e
sub esp, 0x1c
mov dword [ebp - 4], edi
mov ecx, esp
mov dword [ebp - 0x178], esp
push 0x10056d6f
call fcn.10001e3e
lea eax, [ebp - 0x1a0]
push eax
lea ebx, [ebp - 0x6c]
call fcn.10001305
add esp, 0x20
xor edi, edi
xor ebx, ebx
push edi
inc ebx
push ebx
lea ecx, [ebp - 0x1a0]
mov byte [ebp - 4], 2
call fcn.100020f3
push str.replace
lea eax, [ebp - 0x6c]
call fcn.10005c2e
pop ecx
test al, al
jne 0x100326f2
push str.delete
lea eax, [ebp - 0x6c]
call fcn.10005c2e
pop ecx
test al, al
je 0x10032767
push dword [ebp - 0x170]
mov esi, str.i_key_columns
mov edx, esi
call fcn.10023221
cmp byte [eax + 8], 4
jne 0x10032732
push dword [ebp - 0x170]
mov edx, esi
call fcn.10023221
push eax
lea ecx, [ebp - 0x50]
call fcn.10022454
mov dword [ebp - 0x184], ebx
mov byte [ebp - 0x171], 0
cmp dword [eax + 0x14], edi
jne 0x10032739
mov byte [ebp - 0x171], 1
test byte [ebp - 0x184], 1
je 0x1003274c
push edi
push ebx
lea ecx, [ebp - 0x50]
call fcn.100020f3
cmp byte [ebp - 0x171], 0
je 0x10032767
push edi
push ebx
lea ecx, [ebp - 0x6c]
call fcn.100020f3
xor eax, eax
call fcn.10037ddd
ret
sub esp, 0x18
mov esi, esp
mov dword [ebp - 0x178], esp
push dword [ebp - 0x180]
call fcn.10022015
push dword [ebp - 0x170]
mov edx, str.i_dt
mov byte [ebp - 4], 3
call fcn.10023221
mov edi, eax
mov byte [ebp - 4], 2
call fcn.100222e9
sub esp, 0x18
mov esi, esp
mov dword [ebp - 0x178], esp
push 0x1006e158
call fcn.10022015
push dword [ebp - 0x170]
mov edx, str.client_unique
mov byte [ebp - 4], 4
call fcn.10023221
mov edi, eax
mov byte [ebp - 4], 2
call fcn.100222e9
push dword [ebp - 0x170]
mov ebx, str.user_name
mov edx, ebx
call fcn.10023221
cmp byte [eax + 8], 0
jne 0x100328ec
lea edi, [ebp - 0x16c]
call fcn.10001363
mov eax, edi
push eax
mov byte [ebp - 4], 5
call fcn.1001da80
pop ecx
test eax, eax
je 0x10032874
cmp dword [ebp - 0x158], 0
je 0x10032874
sub esp, 0x18
mov edx, edi
mov esi, esp
mov dword [ebp - 0x178], esp
call fcn.10022096
push dword [ebp - 0x170]
mov edx, ebx
mov byte [ebp - 4], 6
call fcn.10023221
mov edi, eax
mov byte [ebp - 4], 5
call fcn.100222e9
sub esp, 0x18
mov esi, esp
mov dword [ebp - 0x178], esp
push 1
call fcn.10021fb7
push dword [ebp - 0x170]
mov edx, str.i_user_data
mov byte [ebp - 4], 7
call fcn.10023221
mov edi, eax
mov byte [ebp - 4], 5
call fcn.100222e9
xor ebx, ebx
jmp 0x100328db
push 0x1006e058
lea esi, [ebp - 0x50]
call fcn.10001ec7
mov eax, esi
push eax
lea eax, [ebp - 0x30]
push eax
mov byte [ebp - 4], 8
call fcn.1000121f
sub esp, 0x10
mov byte [ebp - 4], 9
mov edx, eax
mov esi, esp
mov dword [ebp - 0x178], esp
call fcn.10022096
push dword [ebp - 0x170]
mov edx, ebx
mov byte [ebp - 4], 0xa
call fcn.10023221
mov edi, eax
mov byte [ebp - 4], 9
call fcn.100222e9
xor ebx, ebx
push ebx
push 1
lea ecx, [ebp - 0x30]
call fcn.100020f3
push ebx
push 1
lea esi, [ebp - 0x50]
call fcn.100021ef
lea esi, [ebp - 0x16c]
mov byte [ebp - 4], 2
call fcn.10001a1c
jmp 0x100328ee
xor ebx, ebx
push dword [ebp - 0x170]
mov edx, str.data_time
call fcn.10023221
cmp byte [eax + 8], 0
jne 0x10032981
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.10022015
push dword [ebp - 0x170]
mov edx, str.data_time
mov byte [ebp - 4], 0xb
call fcn.10023221
mov edi, eax
mov byte [ebp - 4], 2
call fcn.100222e9
cmp dword [ebp - 0x17c], ebx
je 0x10032a6a
push dword [ebp - 0x17c]
call dword [sym.imp.SHLWAPI.dll_PathFindFileNameW]
push eax
lea esi, [ebp - 0x50]
call fcn.10001ec7
mov eax, esi
push eax
lea eax, [ebp - 0x30]
push eax
mov byte [ebp - 4], 0xc
call fcn.1000121f
sub esp, 0x10
mov byte [ebp - 4], 0xd
mov edx, eax
mov esi, esp
mov dword [ebp - 0x178], esp
call fcn.10022096
push dword [ebp - 0x170]
mov edx, str.attach_name
mov byte [ebp - 4], 0xe
call fcn.10023221
mov edi, eax
mov byte [ebp - 4], 0xd
call fcn.100222e9
push ebx
push 1
lea ecx, [ebp - 0x30]
call fcn.100020f3
push ebx
push 1
lea esi, [ebp - 0x50]
mov byte [ebp - 4], 2
call fcn.100021ef
push dword [ebp - 0x17c]
lea esi, [ebp - 0x50]
call fcn.10001ec7
mov eax, esi
push eax
lea eax, [ebp - 0x30]
push eax
mov byte [ebp - 4], 0xf
call fcn.1000121f
sub esp, 0x10
mov byte [ebp - 4], 0x10
mov edx, eax
mov esi, esp
mov dword [ebp - 0x178], esp
call fcn.10022096
push dword [ebp - 0x170]
mov edx, str.attachment
mov byte [ebp - 4], 0x11
call fcn.10023221
mov edi, eax
mov byte [ebp - 4], 0x10
call fcn.100222e9
push ebx
push 1
lea ecx, [ebp - 0x30]
call fcn.100020f3
push ebx
push 1
lea esi, [ebp - 0x50]
call fcn.100021ef
push ebx
push 1
lea ecx, [ebp - 0x6c]
call fcn.100020f3
xor eax, eax
inc eax
jmp 0x10032761