Function at 0x404d50
Capabilities:
Copy file
Get common file path

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x595541
mov eax, dword fs:[0]
push eax
sub esp, 0x264
mov eax, dword [0x604e44]
xor eax, ebp
mov dword [ebp - 0x10], eax
push esi
push edi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
call fcn.00404ac0
test al, al
jne 0x404da8
mov edx, str.TEMP_
mov ecx, 0x60e108
call fcn.004074d0
push eax
call fcn.00407780
add esp, 4
mov eax, 1
jmp 0x4050f4
push 0x104
lea eax, [ebp - 0x120]
push eax
push 0
call dword [sym.imp.KERNEL32.dll_GetModuleFileNameA]
lea eax, [ebp - 0x120]
push eax
call dword [sym.imp.KERNEL32.dll_lstrlenA]
dec eax
test eax, eax
jle 0x404ddf
nop
cmp byte [ebp + eax - 0x120], 0x5c
je 0x404e3f
dec eax
test eax, eax
jg 0x404dd0
lea eax, [ebp - 0x1c]
mov dword [ebp - 0x1c], 0x656d6461
push eax
lea eax, [ebp - 0x120]
mov dword [ebp - 0x18], 0x7478742e
push eax
mov byte [ebp - 0x14], 0
call dword [sym.imp.KERNEL32.dll_lstrcatA]
lea eax, [ebp - 0x224]
push eax
push 0
push 0
push 0x23
push 0
call dword [sym.imp.SHELL32.dll_SHGetFolderPathA]
mov dword [ebp - 0x248], 0
mov dword [ebp - 0x244], 0xf
mov byte [ebp - 0x258], 0
test eax, eax
je 0x404e55
push 0
push 0x5e174a
jmp 0x404e71
inc eax
cmp eax, 0x104
jae 0x40510f
mov byte [ebp + eax - 0x120], 0
jmp 0x404ddf
lea ecx, [ebp - 0x224]
lea edx, [ecx + 1]
nop
mov al, byte [ecx]
inc ecx
test al, al
jne 0x404e60
sub ecx, edx
lea eax, [ebp - 0x224]
push ecx
push eax
lea ecx, [ebp - 0x258]
call fcn.00406310
mov dword [ebp - 4], 0
mov edx, dword [ebp - 0x244]
mov eax, edx
mov ecx, dword [ebp - 0x248]
sub eax, ecx
push 1
push 0x5e25ac
cmp eax, 1
jb 0x404ecf
cmp edx, 0x10
lea esi, [ebp - 0x258]
lea eax, [ecx + 1]
cmovae esi, dword [ebp - 0x258]
add esi, ecx
mov dword [ebp - 0x248], eax
push esi
call fcn.005706f0
add esp, 0xc
mov byte [esi + 1], 0
lea eax, [ebp - 0x258]
jmp 0x404ee9
mov byte [ebp - 0x240], 0
lea ecx, [ebp - 0x258]
push dword [ebp - 0x240]
push 1
call fcn.00407b30
mov dword [ebp - 0x260], 0
mov dword [ebp - 0x25c], 0
movups xmm0, xmmword [eax]
movups xmmword [ebp - 0x270], xmm0
movq xmm0, qword [eax + 0x10]
movq qword [ebp - 0x260], xmm0
mov dword [eax + 0x10], 0
mov dword [eax + 0x14], 0xf
mov byte [eax], 0
lea edi, [ebp - 0x1c]
mov byte [ebp - 4], 1
lea ecx, [edi + 1]
nop
mov al, byte [edi]
inc edi
test al, al
jne 0x404f30
mov edx, dword [ebp - 0x25c]
sub edi, ecx
mov ecx, dword [ebp - 0x260]
mov eax, edx
sub eax, ecx
push edi
cmp edi, eax
ja 0x404f82
lea eax, [edi + ecx]
cmp edx, 0x10
mov dword [ebp - 0x260], eax
lea esi, [ebp - 0x270]
cmovae esi, dword [ebp - 0x270]
lea eax, [ebp - 0x1c]
add esi, ecx
push eax
push esi
call fcn.005706f0
add esp, 0xc
mov byte [edi + esi], 0
lea eax, [ebp - 0x270]
jmp 0x404f9f
lea eax, [ebp - 0x1c]
mov byte [ebp - 0x240], 0
push eax
push dword [ebp - 0x240]
lea ecx, [ebp - 0x270]
push edi
call fcn.00407b30
mov dword [ebp - 0x22c], 0
mov dword [ebp - 0x228], 0
movups xmm0, xmmword [eax]
movups xmmword [ebp - 0x23c], xmm0
movq xmm0, qword [eax + 0x10]
movq qword [ebp - 0x22c], xmm0
mov dword [eax + 0x10], 0
mov dword [eax + 0x14], 0xf
mov byte [eax], 0
mov byte [ebp - 4], 3
mov edx, dword [ebp - 0x25c]
cmp edx, 0x10
jb 0x405019
mov ecx, dword [ebp - 0x270]
inc edx
mov eax, ecx
cmp edx, 0x1000
jb 0x40500f
mov ecx, dword [ecx - 4]
add edx, 0x23
sub eax, ecx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x405114
push edx
push ecx
call fcn.0056c6a6
add esp, 8
mov dword [ebp - 0x260], 0
mov dword [ebp - 0x25c], 0xf
mov byte [ebp - 0x270], 0
mov byte [ebp - 4], 4
mov edx, dword [ebp - 0x244]
cmp edx, 0x10
jb 0x405072
mov ecx, dword [ebp - 0x258]
inc edx
mov eax, ecx
cmp edx, 0x1000
jb 0x405068
mov ecx, dword [ecx - 4]
add edx, 0x23
sub eax, ecx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x405119
push edx
push ecx
call fcn.0056c6a6
add esp, 8
cmp dword [ebp - 0x228], 0x10
lea eax, [ebp - 0x23c]
push 0
cmovae eax, dword [ebp - 0x23c]
push eax
lea eax, [ebp - 0x120]
mov dword [ebp - 0x248], 0
push eax
mov dword [ebp - 0x244], 0xf
mov byte [ebp - 0x258], 0
call dword [sym.imp.KERNEL32.dll_CopyFileA]
lea ecx, [ebp - 0x120]
call fcn.00404bb0
mov edx, dword [ebp - 0x228]
cmp edx, 0x10
jb 0x4050f2
mov ecx, dword [ebp - 0x23c]
inc edx
mov eax, ecx
cmp edx, 0x1000
jb 0x4050e8
mov ecx, dword [ecx - 4]
add edx, 0x23
sub eax, ecx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x40511e
push edx
push ecx
call fcn.0056c6a6
add esp, 8
xor eax, eax
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
mov ecx, dword [ebp - 0x10]
xor ecx, ebp
call fcn.0056c18b
mov esp, ebp
pop ebp
ret
call fcn.0056c7f8
call fcn.00576a9e
call fcn.00576a9e
call fcn.00576a9e
int3