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

Disassembly:
push 0x5b8
mov eax, 0x1007c52e
call fcn.100600fa
mov eax, dword [ebp + 8]
xor esi, esi
mov dword [ebp - 0x58c], eax
mov eax, dword [ebp + 0xc]
mov dword [ebp - 0x584], eax
mov dword [ebp - 0x588], esi
mov edi, 0x80
cmp word [0x100a1f60], si
jne 0x1003fb96
xor eax, eax
push 0xfe
mov word [ebp - 0x578], ax
lea eax, [ebp - 0x576]
push esi
push eax
call fcn.10062cf0
add esp, 0xc
lea eax, [ebp - 0x580]
push eax
lea eax, [ebp - 0x578]
push eax
mov dword [ebp - 0x580], edi
call dword [sym.imp.ADVAPI32.dll_GetUserNameW]
test eax, eax
je 0x1003fb96
push str.system
lea eax, [ebp - 0x578]
push eax
call dword [sym.imp.KERNEL32.dll_lstrcmpiW]
test eax, eax
jne 0x1003fb83
lea eax, [ebp - 0x45c]
push eax
mov edx, str.agentUser
mov ecx, str.Softwareprojonepodlp_smpcache_
call fcn.1003c6ab
pop ecx
cmp dword [ebp - 0x448], esi
jne 0x1003fb52
lea eax, [ebp - 0x578]
jmp 0x1003fb67
cmp dword [ebp - 0x444], 8
mov eax, dword [ebp - 0x458]
jae 0x1003fb67
lea eax, [ebp - 0x458]
push edi
push eax
push 0x100a1f60
call dword [sym.imp.KERNEL32.dll_lstrcpynW]
lea esi, [ebp - 0x45c]
call fcn.1002fe50
xor esi, esi
jmp 0x1003fb96
push edi
lea eax, [ebp - 0x578]
push eax
push 0x100a1f60
call dword [sym.imp.KERNEL32.dll_lstrcpynW]
cmp byte [0x100a2060], 0
jne 0x1003fbd2
lea eax, [ebp - 0x5c4]
push eax
call fcn.1004da34
cmp dword [eax + 0x18], 0x10
pop ecx
jb 0x1003fbb7
mov eax, dword [eax + 4]
jmp 0x1003fbba
add eax, 4
push edi
push eax
push 0x100a2060
call dword [sym.imp.KERNEL32.dll_lstrcpynA]
lea ecx, [ebp - 0x5c4]
call fcn.100077c0
cmp word [0x100a1f60], si
je 0x1003fcdb
cmp byte [0x100a2060], 0
je 0x1003fcdb
cmp dword [ebp - 0x58c], esi
je 0x1003fcdb
cmp byte [ebx + 8], 7
jne 0x1003fcdb
push str.i_action
lea ecx, [ebp - 0x5c4]
call fcn.10007750
sub esp, 0x1c
mov dword [ebp - 4], esi
mov ecx, esp
mov dword [ebp - 0x580], esp
push 0x10083c5f
call fcn.10007750
lea eax, [ebp - 0x478]
push eax
lea esi, [ebp - 0x5c4]
mov edi, ebx
call fcn.10001700
add esp, 0x20
mov ecx, esi
mov byte [ebp - 4], 2
call fcn.100077c0
mov ecx, str.replace
lea edi, [ebp - 0x478]
call fcn.1000ba80
test al, al
jne 0x1003fc6e
mov ecx, str.delete
call fcn.1000ba80
test al, al
je 0x1003fce3
mov esi, str.i_key_columns
push ebx
mov edx, esi
call fcn.10045627
cmp byte [eax + 8], 4
jne 0x1003fcac
push ebx
mov edx, esi
call fcn.10045627
push eax
lea ecx, [ebp - 0x5a8]
call fcn.10044884
cmp dword [eax + 0x14], 0
mov dword [ebp - 0x588], 1
mov byte [ebp - 0x579], 0
jne 0x1003fcb3
mov byte [ebp - 0x579], 1
test byte [ebp - 0x588], 1
je 0x1003fcc7
lea ecx, [ebp - 0x5a8]
call fcn.100077c0
cmp byte [ebp - 0x579], 0
je 0x1003fce3
lea ecx, [ebp - 0x478]
call fcn.100077c0
xor eax, eax
call fcn.1006017d
ret
sub esp, 0x18
mov esi, esp
mov dword [ebp - 0x580], esp
push dword [ebp - 0x58c]
call fcn.10044413
push ebx
mov edx, str.i_dt
mov byte [ebp - 4], 3
call fcn.10045627
mov edi, eax
mov byte [ebp - 4], 2
call fcn.10044719
sub esp, 0x18
mov esi, esp
mov dword [ebp - 0x580], esp
push 0x100a2060
call fcn.10044413
push ebx
mov edx, str.client_unique
mov byte [ebp - 4], 4
call fcn.10045627
mov edi, eax
mov byte [ebp - 4], 2
call fcn.10044719
mov edi, str.user_name
push ebx
mov edx, edi
call fcn.10045627
cmp byte [eax + 8], 0
jne 0x1003fe4e
lea esi, [ebp - 0x578]
call fcn.1003f8de
mov eax, esi
push eax
mov byte [ebp - 4], 5
call fcn.1004e1f5
pop ecx
test eax, eax
je 0x1003fdd5
cmp dword [ebp - 0x564], 0
je 0x1003fdd5
sub esp, 0x18
mov edx, esi
mov esi, esp
mov dword [ebp - 0x580], esp
call fcn.100444c6
push ebx
mov edx, edi
mov byte [ebp - 4], 6
call fcn.10045627
mov edi, eax
mov byte [ebp - 4], 5
call fcn.10044719
sub esp, 0x18
mov esi, esp
mov dword [ebp - 0x580], esp
push 1
call fcn.100443b5
push ebx
mov edx, str.i_user_data
mov byte [ebp - 4], 7
call fcn.10045627
mov edi, eax
mov byte [ebp - 4], 5
call fcn.10044719
jmp 0x1003fe3f
mov eax, 0x100a1f60
lea ecx, [ebp - 0x45c]
call fcn.10007820
lea eax, [ebp - 0x45c]
push eax
lea eax, [ebp - 0x5a8]
push eax
mov byte [ebp - 4], 8
call fcn.100013e0
sub esp, 0x10
mov byte [ebp - 4], 9
mov edx, eax
mov esi, esp
mov dword [ebp - 0x580], esp
call fcn.100444c6
push ebx
mov edx, edi
mov byte [ebp - 4], 0xa
call fcn.10045627
mov edi, eax
mov byte [ebp - 4], 9
call fcn.10044719
lea ecx, [ebp - 0x5a8]
call fcn.100077c0
lea esi, [ebp - 0x45c]
call fcn.1002fe50
lea esi, [ebp - 0x578]
mov byte [ebp - 4], 2
call fcn.100400f1
push ebx
mov edx, str.data_time
call fcn.10045627
cmp byte [eax + 8], 0
jne 0x1003fef0
push 7
xor eax, eax
mov byte [ebp - 0x30], 0
pop ecx
lea edi, [ebp - 0x2f]
rep stosd dword es:[edi], eax
stosw word es:[edi], ax
stosb byte es:[edi], al
lea eax, [ebp - 0x450]
push eax
call dword [sym.imp.KERNEL32.dll_GetLocalTime]
movzx eax, word [ebp - 0x444]
push eax
movzx eax, word [ebp - 0x446]
push eax
movzx eax, word [ebp - 0x448]
push eax
movzx eax, word [ebp - 0x44a]
push eax
movzx eax, word [ebp - 0x44e]
push eax
movzx eax, word [ebp - 0x450]
push eax
push 0x1008666c
lea eax, [ebp - 0x30]
push 0x20
push eax
call dword [sym.imp.SHLWAPI.dll_wnsprintfA]
add esp, 0xc
lea eax, [ebp - 0x30]
mov esi, esp
mov dword [ebp - 0x580], esp
push eax
call fcn.10044413
push ebx
mov edx, str.data_time
mov byte [ebp - 4], 0xb
call fcn.10045627
mov edi, eax
mov byte [ebp - 4], 2
call fcn.10044719
cmp dword [ebp - 0x584], 0
je 0x100400de
push dword [ebp - 0x584]
call dword [sym.imp.SHLWAPI.dll_PathFindFileNameW]
lea ecx, [ebp - 0x45c]
call fcn.10007820
lea eax, [ebp - 0x45c]
push eax
lea eax, [ebp - 0x5a8]
push eax
mov byte [ebp - 4], 0xc
call fcn.100013e0
sub esp, 0x10
mov byte [ebp - 4], 0xd
mov edx, eax
mov esi, esp
mov dword [ebp - 0x580], esp
call fcn.100444c6
push ebx
mov edx, str.attach_name
mov byte [ebp - 4], 0xe
call fcn.10045627
mov edi, eax
mov byte [ebp - 4], 0xd
call fcn.10044719
lea ecx, [ebp - 0x5a8]
call fcn.100077c0
lea esi, [ebp - 0x45c]
mov byte [ebp - 4], 2
call fcn.1002fe50
cmp dword [ebp + 0x10], 0
je 0x1003ffe9
mov eax, dword [ebp - 0x584]
lea ecx, [ebp - 0x45c]
call fcn.10007820
lea eax, [ebp - 0x45c]
push eax
lea eax, [ebp - 0x5a8]
push eax
mov byte [ebp - 4], 0xf
call fcn.100013e0
sub esp, 0x10
mov byte [ebp - 4], 0x10
mov edx, eax
mov esi, esp
mov dword [ebp - 0x580], esp
call fcn.100444c6
push ebx
mov edx, str.attachment
mov byte [ebp - 4], 0x11
call fcn.10045627
mov edi, eax
mov byte [ebp - 4], 0x10
call fcn.10044719
lea ecx, [ebp - 0x5a8]
call fcn.100077c0
lea esi, [ebp - 0x45c]
jmp 0x100400d9
xor eax, eax
mov edi, 0x206
push edi
push eax
mov word [ebp - 0x238], ax
lea eax, [ebp - 0x236]
push eax
call fcn.10062cf0
add esp, 0xc
lea ecx, [ebp - 0x238]
call fcn.1003f989
test eax, eax
je 0x1003fcd0
lea esi, [ebp - 0x238]
call fcn.10039f65
xor eax, eax
push edi
push eax
mov word [ebp - 0x440], ax
lea eax, [ebp - 0x43e]
push eax
call fcn.10062cf0
add esp, 0xc
push 0x104
lea eax, [ebp - 0x440]
push eax
call fcn.1003aa52
lea eax, [ebp - 0x440]
push eax
mov eax, esi
push eax
call dword [sym.imp.SHLWAPI.dll_PathAppendW]
push 0
mov eax, esi
push eax
push dword [ebp - 0x584]
call dword [sym.imp.KERNEL32.dll_CopyFileW]
test eax, eax
je 0x1003fcd0
mov eax, esi
lea ecx, [ebp - 0x5a8]
call fcn.10007820
lea eax, [ebp - 0x5a8]
push eax
lea eax, [ebp - 0x2c]
push eax
mov byte [ebp - 4], 0x12
call fcn.100013e0
sub esp, 0x10
mov byte [ebp - 4], 0x13
mov edx, eax
mov esi, esp
mov dword [ebp - 0x580], esp
call fcn.100444c6
push ebx
mov edx, str.attachment
mov byte [ebp - 4], 0x14
call fcn.10045627
mov edi, eax
mov byte [ebp - 4], 0x13
call fcn.10044719
lea ecx, [ebp - 0x2c]
call fcn.100077c0
lea esi, [ebp - 0x5a8]
call fcn.1002fe50
lea ecx, [ebp - 0x478]
call fcn.100077c0
xor eax, eax
inc eax
jmp 0x1003fcdd