Function at 0x47467e
Capabilities:
Copy file
Get session user name

Disassembly:
push 0x5bc
mov eax, 0x49ad1b
call fcn.0047e89a
mov eax, dword [ebp + 8]
mov ebx, dword [ebp + 0xc]
xor esi, esi
mov dword [ebp - 0x590], eax
mov eax, dword [ebp + 0x10]
mov dword [ebp - 0x588], eax
mov dword [ebp - 0x58c], esi
mov edi, 0x80
cmp word [0x4c46d8], si
jne 0x474783
xor eax, eax
push 0xfe
mov word [ebp - 0x57c], ax
lea eax, [ebp - 0x57a]
push esi
push eax
call fcn.0047f8f0
add esp, 0xc
lea eax, [ebp - 0x584]
push eax
lea eax, [ebp - 0x57c]
push eax
mov dword [ebp - 0x584], edi
call dword [sym.imp.ADVAPI32.dll_GetUserNameW]
test eax, eax
je 0x474783
push str.system
lea eax, [ebp - 0x57c]
push eax
call dword [sym.imp.KERNEL32.dll_lstrcmpiW]
test eax, eax
jne 0x474770
lea eax, [ebp - 0x460]
push str.agentUser
push eax
mov edx, str.Softwareprojonepodlp_smpcache_
mov ecx, reloc.OLEAUT32.dll_SysReAllocString
call fcn.0045e95a
pop ecx
pop ecx
cmp dword [ebp - 0x44c], esi
jne 0x47473f
lea eax, [ebp - 0x57c]
jmp 0x474754
cmp dword [ebp - 0x448], 8
mov eax, dword [ebp - 0x45c]
jae 0x474754
lea eax, [ebp - 0x45c]
push edi
push eax
push 0x4c46d8
call dword [sym.imp.KERNEL32.dll_lstrcpynW]
lea esi, [ebp - 0x460]
call fcn.00405980
xor esi, esi
jmp 0x474783
push edi
lea eax, [ebp - 0x57c]
push eax
push 0x4c46d8
call dword [sym.imp.KERNEL32.dll_lstrcpynW]
cmp byte [0x4c47d8], 0
jne 0x4747bf
lea eax, [ebp - 0x5c8]
push eax
call fcn.0046186c
cmp dword [eax + 0x18], 0x10
pop ecx
jb 0x4747a4
mov eax, dword [eax + 4]
jmp 0x4747a7
add eax, 4
push edi
push eax
push 0x4c47d8
call dword [sym.imp.KERNEL32.dll_lstrcpynA]
lea ecx, [ebp - 0x5c8]
call fcn.00403df0
cmp word [0x4c46d8], si
je 0x4748e3
cmp byte [0x4c47d8], 0
je 0x4748e3
cmp dword [ebp - 0x590], esi
je 0x4748e3
cmp byte [ebx + 8], 7
jne 0x4748e3
push str.i_action
lea ecx, [ebp - 0x5c8]
call fcn.00403d80
sub esp, 0x1c
mov dword [ebp - 4], esi
mov ecx, esp
mov dword [ebp - 0x584], esp
push 0x4a16c8
call fcn.00403d80
lea eax, [ebp - 0x47c]
push eax
lea esi, [ebp - 0x5c8]
mov edi, ebx
call fcn.00405c50
add esp, 0x20
mov ecx, esi
mov byte [ebp - 4], 2
call fcn.00403df0
mov eax, dword [ebp - 0x468]
push str.replace
push 7
pop edi
lea ecx, [ebp - 0x47c]
call fcn.00411900
test eax, eax
je 0x474873
mov eax, dword [ebp - 0x468]
push str.delete
push 6
pop edi
lea ecx, [ebp - 0x47c]
call fcn.00411900
test eax, eax
jne 0x4748eb
mov esi, str.i_key_columns
push ebx
mov edx, esi
call fcn.0046a3b0
cmp byte [eax + 8], 4
jne 0x4748b4
lea eax, [ebp - 0x5ac]
push eax
push ecx
push ebx
mov edx, esi
call fcn.0046a3b0
pop ecx
push eax
call fcn.00469609
cmp dword [eax + 0x14], 0
mov dword [ebp - 0x58c], 1
mov byte [ebp - 0x57d], 0
jne 0x4748bb
mov byte [ebp - 0x57d], 1
test byte [ebp - 0x58c], 1
je 0x4748cf
lea ecx, [ebp - 0x5ac]
call fcn.00403df0
cmp byte [ebp - 0x57d], 0
je 0x4748eb
lea ecx, [ebp - 0x47c]
call fcn.00403df0
xor eax, eax
call fcn.0047e91d
ret
sub esp, 0x18
mov esi, esp
mov dword [ebp - 0x584], esp
push dword [ebp - 0x590]
call fcn.00469193
push ebx
mov edx, str.i_dt
mov byte [ebp - 4], 3
call fcn.0046a3b0
mov edi, eax
mov byte [ebp - 4], 2
call fcn.0046949e
sub esp, 0x18
mov esi, esp
mov dword [ebp - 0x584], esp
push 0x4c47d8
call fcn.00469193
push ebx
mov edx, str.client_unique
mov byte [ebp - 4], 4
call fcn.0046a3b0
mov edi, eax
mov byte [ebp - 4], 2
call fcn.0046949e
mov edi, str.user_name
push ebx
mov edx, edi
call fcn.0046a3b0
cmp byte [eax + 8], 0
jne 0x474a5e
lea eax, [ebp - 0x57c]
call fcn.00408400
lea eax, [ebp - 0x57c]
push eax
mov byte [ebp - 4], 5
call fcn.004629db
pop ecx
test eax, eax
je 0x4749e5
cmp dword [ebp - 0x568], 0
je 0x4749e5
sub esp, 0x18
lea edx, [ebp - 0x57c]
mov esi, esp
mov dword [ebp - 0x584], esp
call fcn.00469246
push ebx
mov edx, edi
mov byte [ebp - 4], 6
call fcn.0046a3b0
mov edi, eax
mov byte [ebp - 4], 5
call fcn.0046949e
sub esp, 0x18
mov esi, esp
mov dword [ebp - 0x584], esp
push 1
call fcn.0046914e
push ebx
mov edx, str.i_user_data
mov byte [ebp - 4], 7
call fcn.0046a3b0
mov edi, eax
mov byte [ebp - 4], 5
call fcn.0046949e
jmp 0x474a4f
mov edx, 0x4c46d8
lea eax, [ebp - 0x460]
call fcn.00402730
lea eax, [ebp - 0x460]
push eax
lea eax, [ebp - 0x5ac]
push eax
mov byte [ebp - 4], 8
call fcn.004059b0
sub esp, 0x10
mov byte [ebp - 4], 9
mov edx, eax
mov esi, esp
mov dword [ebp - 0x584], esp
call fcn.00469246
push ebx
mov edx, edi
mov byte [ebp - 4], 0xa
call fcn.0046a3b0
mov edi, eax
mov byte [ebp - 4], 9
call fcn.0046949e
lea ecx, [ebp - 0x5ac]
call fcn.00403df0
lea esi, [ebp - 0x460]
call fcn.00405980
lea esi, [ebp - 0x57c]
mov byte [ebp - 4], 2
call fcn.00410a60
push ebx
mov edx, str.data_time
call fcn.0046a3b0
cmp byte [eax + 8], 0
jne 0x474b00
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 - 0x454]
push eax
call dword [sym.imp.KERNEL32.dll_GetLocalTime]
movzx eax, word [ebp - 0x448]
push eax
movzx eax, word [ebp - 0x44a]
push eax
movzx eax, word [ebp - 0x44c]
push eax
movzx eax, word [ebp - 0x44e]
push eax
movzx eax, word [ebp - 0x452]
push eax
movzx eax, word [ebp - 0x454]
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 - 0x584], esp
push eax
call fcn.00469193
push ebx
mov edx, str.data_time
mov byte [ebp - 4], 0xb
call fcn.0046a3b0
mov edi, eax
mov byte [ebp - 4], 2
call fcn.0046949e
cmp dword [ebp - 0x588], 0
je 0x474cf0
push dword [ebp - 0x588]
call dword [sym.imp.SHLWAPI.dll_PathFindFileNameW]
mov edx, eax
lea eax, [ebp - 0x460]
call fcn.00402730
lea eax, [ebp - 0x460]
push eax
lea eax, [ebp - 0x5ac]
push eax
mov byte [ebp - 4], 0xc
call fcn.004059b0
sub esp, 0x10
mov byte [ebp - 4], 0xd
mov edx, eax
mov esi, esp
mov dword [ebp - 0x584], esp
call fcn.00469246
push ebx
mov edx, str.attach_name
mov byte [ebp - 4], 0xe
call fcn.0046a3b0
mov edi, eax
mov byte [ebp - 4], 0xd
call fcn.0046949e
lea ecx, [ebp - 0x5ac]
call fcn.00403df0
lea esi, [ebp - 0x460]
mov byte [ebp - 4], 2
call fcn.00405980
cmp dword [ebp + 0x14], 0
je 0x474bfb
mov edx, dword [ebp - 0x588]
lea eax, [ebp - 0x460]
call fcn.00402730
lea eax, [ebp - 0x460]
push eax
lea eax, [ebp - 0x5ac]
push eax
mov byte [ebp - 4], 0xf
call fcn.004059b0
sub esp, 0x10
mov byte [ebp - 4], 0x10
mov edx, eax
mov esi, esp
mov dword [ebp - 0x584], esp
call fcn.00469246
push ebx
mov edx, str.attachment
mov byte [ebp - 4], 0x11
call fcn.0046a3b0
mov edi, eax
mov byte [ebp - 4], 0x10
call fcn.0046949e
lea ecx, [ebp - 0x5ac]
call fcn.00403df0
lea esi, [ebp - 0x460]
jmp 0x474ceb
xor eax, eax
mov edi, 0x206
push edi
push eax
mov word [ebp - 0x23c], ax
lea eax, [ebp - 0x23a]
push eax
call fcn.0047f8f0
add esp, 0xc
lea ecx, [ebp - 0x23c]
call fcn.0047456c
test eax, eax
je 0x4748d8
lea esi, [ebp - 0x23c]
call fcn.0045cbc0
xor eax, eax
push edi
push eax
mov word [ebp - 0x444], ax
lea eax, [ebp - 0x442]
push eax
call fcn.0047f8f0
add esp, 0xc
push 0x104
lea eax, [ebp - 0x444]
push eax
call fcn.0045d1a4
lea eax, [ebp - 0x444]
push eax
mov eax, esi
push eax
call dword [sym.imp.SHLWAPI.dll_PathAppendW]
push 0
mov eax, esi
push eax
push dword [ebp - 0x588]
call dword [sym.imp.KERNEL32.dll_CopyFileW]
test eax, eax
je 0x4748d8
mov edx, esi
lea eax, [ebp - 0x5ac]
call fcn.00402730
lea eax, [ebp - 0x5ac]
push eax
lea eax, [ebp - 0x30]
push eax
mov byte [ebp - 4], 0x12
call fcn.004059b0
sub esp, 0x10
mov byte [ebp - 4], 0x13
mov edx, eax
mov esi, esp
mov dword [ebp - 0x584], esp
call fcn.00469246
push ebx
mov edx, str.attachment
mov byte [ebp - 4], 0x14
call fcn.0046a3b0
mov edi, eax
mov byte [ebp - 4], 0x13
call fcn.0046949e
lea ecx, [ebp - 0x30]
call fcn.00403df0
lea esi, [ebp - 0x5ac]
call fcn.00405980
lea ecx, [ebp - 0x47c]
call fcn.00403df0
xor eax, eax
inc eax
jmp 0x4748e5