Function at 0x4010a0
Capabilities:
Copy file
Create directory
Get common file path

Disassembly:
jmp 0x407360
push 0xffffffffffffffff
push 0x49820e
mov eax, dword fs:[0]
push eax
sub esp, 0x148
mov eax, dword [0x4c6dd4]
xor eax, esp
mov dword [esp + 0x144], eax
push ebx
push ebp
push esi
push edi
mov eax, dword [0x4c6dd4]
xor eax, esp
push eax
lea eax, [esp + 0x15c]
mov dword fs:[0], eax
push ecx
mov dword [esp + 0x2c], ecx
mov ecx, esp
mov dword [esp + 0x1c], esp
push 0x4a310a
call fcn.004012d5
push ecx
mov ecx, esp
mov dword [esp + 0x2c], esp
push str..FileToEmail.cpp
mov dword [esp + 0x170], 0
call fcn.004012d5
push ecx
mov ecx, esp
mov dword [esp + 0x28], esp
push str.CopyToDesktop
mov byte [esp + 0x174], 1
call fcn.004012d5
lea ecx, [esp + 0x38]
mov dword [esp + 0x170], 0xffffffff
call fcn.0040130c
push 0x104
lea eax, [esp + 0x58]
push 0
push eax
mov dword [esp + 0x170], 2
call fcn.00451640
add esp, 0xc
push 1
push 0x10
lea ecx, [esp + 0x5c]
push ecx
push 0
call dword [sym.imp.SHELL32.dll_SHGetSpecialFolderPathA]
test eax, eax
jne 0x40745e
push 0xffffffffffffffff
push ecx
mov ecx, esp
mov dword [esp + 0x28], esp
push str.Failed_to_get_users_desktop_directory
call fcn.004012d5
lea ecx, [esp + 0x34]
call fcn.00401514
mov dx, word [0x4a36f8]
mov al, byte [0x4a36fa]
mov word [esp + 0x54], dx
mov byte [esp + 0x56], al
lea edi, [esp + 0x54]
add edi, 0xffffffff
mov al, byte [edi + 1]
add edi, 1
test al, al
jne 0x407465
mov cx, word [0x4a33c8]
lea eax, [esp + 0x54]
mov word [edi], cx
add eax, 0xffffffff
mov cl, byte [eax + 1]
add eax, 1
test cl, cl
jne 0x407480
mov edx, dword [str.HP_CCC]
mov cx, word [0x4a36f4]
mov dword [eax], edx
mov dl, byte [0x4a36f6]
mov word [eax + 4], cx
mov byte [eax + 6], dl
lea eax, [esp + 0x54]
push eax
lea ecx, [esp + 0x18]
call fcn.004012d5
lea ecx, [esp + 0x3c]
mov byte [esp + 0x164], 3
call fcn.00419801
mov ecx, dword [esp + 0x14]
push 0
push ecx
lea ecx, [esp + 0x44]
mov byte [esp + 0x16c], 4
call fcn.0041988d
test eax, eax
je 0x407505
push 1
push 0x4a36ec
lea ecx, [esp + 0x1c]
call fcn.004010ff
mov edx, dword [esp + 0x14]
push 0
push edx
lea ecx, [esp + 0x44]
call fcn.0041988d
test eax, eax
jne 0x4074e1
mov eax, dword [esp + 0x14]
push 0
push eax
call dword [sym.imp.KERNEL32.dll_CreateDirectoryA]
test eax, eax
jne 0x407595
push ecx
mov ecx, esp
mov dword [esp + 0x24], esp
push str.Trouble_creating_directory
call fcn.004012d5
lea ecx, [esp + 0x30]
call fcn.00401253
mov ecx, dword [esp + 0x14]
push 0x5c
push ecx
call fcn.00450c71
add esp, 8
test eax, eax
jne 0x407548
or eax, 0xffffffff
jmp 0x40754c
sub eax, dword [esp + 0x14]
push eax
lea edx, [esp + 0x1c]
push edx
lea ecx, [esp + 0x1c]
call fcn.004014fb
push eax
lea ecx, [esp + 0x18]
mov byte [esp + 0x168], 5
call fcn.00401339
mov eax, dword [esp + 0x18]
add eax, 0xfffffff0
mov byte [esp + 0x164], 4
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x407595
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
call fcn.004141fe
xor ecx, ecx
test eax, eax
setne cl
test ecx, ecx
jne 0x4075af
push 0x80004005
call fcn.004013ed
mov edx, dword [eax]
mov ecx, eax
mov eax, dword [edx + 0xc]
call eax
lea ebx, [eax + 0x10]
mov dword [esp + 0x18], ebx
mov byte [esp + 0x164], 6
call fcn.004141fe
xor ecx, ecx
test eax, eax
setne cl
test ecx, ecx
jne 0x4075e1
push 0x80004005
call fcn.004013ed
mov edx, dword [eax]
mov ecx, eax
mov eax, dword [edx + 0xc]
call eax
lea ebp, [eax + 0x10]
mov dword [esp + 0x24], ebp
mov byte [esp + 0x164], 7
call fcn.004141fe
xor ecx, ecx
test eax, eax
setne cl
test ecx, ecx
jne 0x407613
push 0x80004005
call fcn.004013ed
mov edx, dword [eax]
mov ecx, eax
mov eax, dword [edx + 0xc]
call eax
lea esi, [eax + 0x10]
mov dword [esp + 0x1c], esi
mov eax, dword [esp + 0x28]
xor edi, edi
cmp dword [eax + 0xd8], edi
mov byte [esp + 0x164], 8
jle 0x407711
lea ecx, [ecx]
test edi, edi
jl 0x4077f3
cmp edi, dword [eax + 0xd8]
jge 0x4077f3
mov ecx, dword [eax + 0xd4]
lea eax, [ecx + edi*4]
push eax
lea ecx, [esp + 0x20]
call fcn.00401339
mov esi, dword [esp + 0x1c]
push 0x5c
push esi
call fcn.00450c71
add esp, 8
test eax, eax
jne 0x40767f
or ecx, 0xffffffff
jmp 0x407683
sub eax, esi
mov ecx, eax
mov eax, dword [esi - 0xc]
sub eax, ecx
sub eax, 1
push eax
lea edx, [esp + 0x24]
push edx
lea ecx, [esp + 0x24]
call fcn.00401168
push eax
lea ecx, [esp + 0x28]
mov byte [esp + 0x168], 9
call fcn.00401339
mov eax, dword [esp + 0x20]
add eax, 0xfffffff0
mov byte [esp + 0x164], 8
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x4076d4
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
mov ebp, dword [esp + 0x24]
mov ecx, dword [esp + 0x14]
push ebp
push ecx
lea edx, [esp + 0x20]
push str._s_s
push edx
call fcn.0040105f
mov ebx, dword [esp + 0x28]
add esp, 0x10
push 0
push ebx
push esi
call dword [sym.imp.KERNEL32.dll_CopyFileA]
mov eax, dword [esp + 0x28]
add edi, 1
cmp edi, dword [eax + 0xd8]
jl 0x407640
add esi, 0xfffffff0
mov byte [esp + 0x164], 7
lea ecx, [esi + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x407735
mov ecx, dword [esi]
mov eax, dword [ecx]
mov edx, dword [eax + 4]
push esi
call edx
add ebp, 0xfffffff0
mov byte [esp + 0x164], 6
lea eax, [ebp + 0xc]
or ecx, 0xffffffff
lock xadd dword [eax], ecx
dec ecx
test ecx, ecx
jg 0x40775a
mov ecx, dword [ebp]
mov edx, dword [ecx]
mov eax, dword [edx + 4]
push ebp
call eax
add ebx, 0xfffffff0
mov byte [esp + 0x164], 4
lea ecx, [ebx + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x40777e
mov ecx, dword [ebx]
mov eax, dword [ecx]
mov edx, dword [eax + 4]
push ebx
call edx
lea ecx, [esp + 0x3c]
mov byte [esp + 0x164], 3
call fcn.00419825
mov eax, dword [esp + 0x14]
add eax, 0xfffffff0
mov byte [esp + 0x164], 2
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x4077b7
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
lea ecx, [esp + 0x2c]
mov dword [esp + 0x164], 0xffffffff
call fcn.004013f2
mov ecx, dword [esp + 0x15c]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebp
pop ebx
mov ecx, dword [esp + 0x144]
xor ecx, esp
call fcn.0045162d
add esp, 0x154
ret
jmp fcn.00413dda