Function at 0x10051a2c
Capabilities:
Get session user name

Disassembly:
push 0x23c
mov eax, 0x10079889
call fcn.10059b82
xor esi, esi
mov ebx, ecx
mov dword [ebp - 0x1f8], ebx
mov dword [ebp - 0x200], esi
mov dword [ebp - 0x1fc], reloc.OLEAUT32.dll_SysReAllocString
mov dword [ebp - 0x1f4], str.Softwareprojonepodlp_rptcachependings_
mov edi, 0x80
cmp word [0x10093620], si
jne 0x10051b4f
xor eax, eax
push 0xfe
mov word [ebp - 0x1b4], ax
lea eax, [ebp - 0x1b2]
push esi
push eax
call fcn.10061ab0
add esp, 0xc
lea eax, [ebp - 0x204]
push eax
lea eax, [ebp - 0x1b4]
push eax
mov dword [ebp - 0x204], edi
call dword [sym.imp.ADVAPI32.dll_GetUserNameW]
test eax, eax
je 0x10051b4f
push str.system
lea eax, [ebp - 0x1b4]
push eax
call dword [sym.imp.KERNEL32.dll_lstrcmpiW]
test eax, eax
jne 0x10051b1f
lea eax, [ebp - 0x1d0]
push eax
mov edx, str.agentUser
mov ecx, str.Softwareprojonepodlp_smpcache_
call fcn.100462f2
pop ecx
cmp dword [ebp - 0x1bc], esi
jne 0x10051aee
lea eax, [ebp - 0x1b4]
jmp 0x10051b03
cmp dword [ebp - 0x1b8], 8
mov eax, dword [ebp - 0x1cc]
jae 0x10051b03
lea eax, [ebp - 0x1cc]
push edi
push eax
push 0x10093620
call dword [sym.imp.KERNEL32.dll_lstrcpynW]
lea esi, [ebp - 0x1d0]
call fcn.10006fd0
xor esi, esi
jmp 0x10051b4f
call fcn.10047db4
test eax, eax
jne 0x10051b3c
mov dword [ebp - 0x1fc], VariantCopy
mov dword [ebp - 0x1f4], str.Softwareprojonepodlp_rptcachependings
push edi
lea eax, [ebp - 0x1b4]
push eax
push 0x10093620
call dword [sym.imp.KERNEL32.dll_lstrcpynW]
cmp byte [0x10093720], 0
jne 0x10051b8b
lea eax, [ebp - 0x248]
push eax
call fcn.10048bed
cmp dword [eax + 0x18], 0x10
pop ecx
jb 0x10051b70
mov eax, dword [eax + 4]
jmp 0x10051b73
add eax, 4
push edi
push eax
push 0x10093720
call dword [sym.imp.KERNEL32.dll_lstrcpynA]
lea ecx, [ebp - 0x248]
call fcn.10006bc0
cmp word [0x10093620], si
je 0x10051c7f
cmp byte [0x10093720], 0
je 0x10051c7f
cmp byte [ebx + 8], 7
jne 0x10051c7f
push str.i_action
lea ecx, [ebp - 0x248]
call fcn.10006b50
sub esp, 0x1c
mov dword [ebp - 4], esi
mov ecx, esp
mov dword [ebp - 0x1f0], esp
push 0x1007de80
call fcn.10006b50
lea eax, [ebp - 0x1ec]
push eax
lea ecx, [ebp - 0x248]
mov edi, ebx
call fcn.100028c0
add esp, 0x20
lea ecx, [ebp - 0x248]
mov byte [ebp - 4], 2
call fcn.10006bc0
mov ecx, str.replace
lea edi, [ebp - 0x1ec]
call fcn.1000d340
test al, al
jne 0x10051c1f
mov ecx, str.delete
call fcn.1000d340
test al, al
je 0x10051c8d
mov esi, str.i_key_columns
push ebx
mov edx, esi
call fcn.1004d5cb
cmp byte [eax + 8], 4
jne 0x10051c5a
push ebx
mov edx, esi
call fcn.1004d5cb
push eax
lea ecx, [ebp - 0x1d0]
call fcn.1004c8e1
cmp dword [eax + 0x14], 0
mov dword [ebp - 0x200], 1
je 0x10051c5a
xor bl, bl
jmp 0x10051c5c
mov bl, 1
test byte [ebp - 0x200], 1
je 0x10051c70
lea ecx, [ebp - 0x1d0]
call fcn.10006bc0
test bl, bl
je 0x10051c87
lea ecx, [ebp - 0x1ec]
call fcn.10006bc0
xor eax, eax
call fcn.10059c05
ret
mov ebx, dword [ebp - 0x1f8]
push ebx
lea ebx, [ebp - 0x22c]
call fcn.1004c55f
sub esp, 0x18
mov byte [ebp - 4], 3
mov esi, esp
mov dword [ebp - 0x1f0], esp
push str.t_patch_inst_log
call fcn.1004c4a2
mov eax, ebx
push eax
mov edx, str.i_dt
mov byte [ebp - 4], 4
call fcn.1004d62e
mov edi, eax
mov byte [ebp - 4], 3
call fcn.1004c776
sub esp, 0x18
mov esi, esp
mov dword [ebp - 0x1f0], esp
push 0x10093720
call fcn.1004c4a2
mov eax, ebx
push eax
mov edx, str.client_unique
mov byte [ebp - 4], 5
call fcn.1004d62e
mov edi, eax
mov byte [ebp - 4], 3
call fcn.1004c776
mov eax, ebx
mov edi, str.user_name
push eax
mov edx, edi
call fcn.1004d62e
cmp byte [eax + 8], 0
jne 0x10051d7d
mov eax, 0x10093620
lea ecx, [ebp - 0x1d0]
call fcn.10006f60
lea eax, [ebp - 0x1d0]
push eax
lea esi, [ebp - 0x30]
mov byte [ebp - 4], 6
call fcn.10001d10
sub esp, 0x14
mov byte [ebp - 4], 7
mov edx, eax
mov esi, esp
mov dword [ebp - 0x1f0], esp
call fcn.1004c523
mov eax, ebx
push eax
mov edx, edi
mov byte [ebp - 4], 8
call fcn.1004d62e
mov edi, eax
mov byte [ebp - 4], 7
call fcn.1004c776
lea ecx, [ebp - 0x30]
call fcn.10006bc0
lea esi, [ebp - 0x1d0]
mov byte [ebp - 4], 3
call fcn.10006fd0
lea eax, [ebp - 0x22c]
push eax
mov edx, str.data_time
call fcn.1004d62e
cmp byte [eax + 8], 0
mov ebx, dword [sym.imp.KERNEL32.dll_GetLocalTime]
jne 0x10051e2d
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 - 0x1c4]
push eax
call ebx
movzx eax, word [ebp - 0x1b8]
push eax
movzx eax, word [ebp - 0x1ba]
push eax
movzx eax, word [ebp - 0x1bc]
push eax
movzx eax, word [ebp - 0x1be]
push eax
movzx eax, word [ebp - 0x1c2]
push eax
movzx eax, word [ebp - 0x1c4]
push eax
push 0x1008165c
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 - 0x1f0], esp
push eax
call fcn.1004c4a2
lea eax, [ebp - 0x22c]
push eax
mov edx, str.data_time
mov byte [ebp - 4], 9
call fcn.1004d62e
mov edi, eax
mov byte [ebp - 4], 3
call fcn.1004c776
xor eax, eax
push 0x7e
push eax
mov word [ebp - 0xb4], ax
lea eax, [ebp - 0xb2]
push eax
call fcn.10061ab0
add esp, 0xc
lea eax, [ebp - 0x214]
push eax
call ebx
mov esi, dword [0x100937a0]
inc dword [0x100937a0]
call fcn.10045a36
push eax
movzx eax, word [ebp - 0x208]
push esi
push eax
movzx eax, word [ebp - 0x20a]
push eax
movzx eax, word [ebp - 0x20c]
push eax
movzx eax, word [ebp - 0x20e]
push eax
movzx eax, word [ebp - 0x212]
push eax
movzx eax, word [ebp - 0x214]
push eax
push str._04d__02d__02d__02d:_02d:_02d__d__08x
lea eax, [ebp - 0xb4]
push 0x40
push eax
call dword [sym.imp.SHLWAPI.dll_wnsprintfW]
add esp, 0x2c
lea eax, [ebp - 0x22c]
push eax
lea ecx, [ebp - 0x1d0]
call fcn.1004da89
push eax
lea ecx, [ebp - 0x30]
mov byte [ebp - 4], 0x13
call fcn.10001c10
cmp dword [eax + 0x18], 8
pop ecx
jb 0x10051ed6
mov eax, dword [eax + 4]
jmp 0x10051ed9
add eax, 4
mov ebx, dword [ebp - 0x1f4]
mov edi, dword [ebp - 0x1fc]
lea ecx, [ebp - 0xb4]
push ecx
mov esi, eax
call fcn.100462a8
lea esi, [ebp - 0x30]
mov edi, eax
call fcn.10006fd0
lea ecx, [ebp - 0x1d0]
mov byte [ebp - 4], 3
call fcn.10006bc0
test edi, edi
je 0x10051f42
push str.GlobalD36B0A68_AE78_4fa2_BD9C_05FD95224F52
push 0
push 2
call dword [sym.imp.KERNEL32.dll_OpenEventA]
mov dword [ebp - 0x1f8], eax
test eax, eax
je 0x10051f35
cmp eax, 0xffffffff
je 0x10051f35
push eax
call dword [sym.imp.KERNEL32.dll_SetEvent]
lea ecx, [ebp - 0x1f8]
call fcn.1000df30
jmp 0x10051f63
call dword [sym.imp.KERNEL32.dll_GetLastError]
push eax
lea eax, [ebp - 0xb4]
push eax
push dword [ebp - 0x1f4]
push str.CachedReport_write_register_failed:__s._s__d
call fcn.100478a8
add esp, 0x10
lea esi, [ebp - 0x22c]
mov byte [ebp - 4], 2
call fcn.1004c6f3
lea ecx, [ebp - 0x1ec]
call fcn.10006bc0
mov eax, edi
jmp 0x10051c81