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

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x7d8186
mov eax, dword fs:[0]
push eax
sub esp, 0x270
mov eax, dword [0x87fbc0]
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.00407520
test al, al
jne 0x4077e0
mov eax, 1
jmp 0x407aea
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 0x407815
cmp byte [ebp + eax - 0x120], 0x5c
je 0x407882
dec eax
test eax, eax
jg 0x407806
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 - 0x260], 0
xorps xmm0, xmm0
mov dword [ebp - 0x24c], 0
mov dword [ebp - 0x248], 0
movups xmmword [ebp - 0x25c], xmm0
test eax, eax
je 0x40789b
push 0
push 0x850710
jmp 0x4078b5
inc eax
cmp eax, 0x104
jae 0x407b05
mov byte [ebp + eax - 0x120], 0
jmp 0x407815
lea ecx, [ebp - 0x224]
lea edx, [ecx + 1]
mov al, byte [ecx]
inc ecx
test al, al
jne 0x4078a4
sub ecx, edx
lea eax, [ebp - 0x224]
push ecx
push eax
lea ecx, [ebp - 0x260]
call fcn.0040a110
mov dword [ebp - 4], 0
mov edx, dword [ebp - 0x248]
mov eax, edx
mov ecx, dword [ebp - 0x24c]
sub eax, ecx
cmp eax, 1
jb 0x407903
lea eax, [ecx + 1]
cmp edx, 0xf
mov dword [ebp - 0x24c], eax
lea esi, [ebp - 0x260]
lea eax, [ebp - 0x25c]
cmova eax, dword [ebp - 0x25c]
mov word [eax + ecx], 0x5c
jmp 0x407926
push 1
push 0x84fe80
mov byte [ebp - 0x244], 0
lea ecx, [ebp - 0x260]
push dword [ebp - 0x244]
push 1
call fcn.0040a7f0
mov esi, eax
mov byte [ebp - 4], 1
xorps xmm0, xmm0
push 8
mov dword [ebp - 0x27c], 0
movups xmmword [ebp - 0x278], xmm0
mov dword [ebp - 0x268], 0
mov dword [ebp - 0x264], 0
call fcn.004dbb40
add esp, 4
lea ecx, [ebp - 0x27c]
mov dword [eax + 4], 0
mov dword [ebp - 0x27c], eax
push esi
mov dword [eax], ecx
call fcn.00409110
lea edi, [ebp - 0x1c]
mov byte [ebp - 4], 2
lea ecx, [edi + 1]
mov al, byte [edi]
inc edi
test al, al
jne 0x407981
mov edx, dword [ebp - 0x264]
sub edi, ecx
mov ecx, dword [ebp - 0x268]
mov eax, edx
sub eax, ecx
push edi
cmp edi, eax
ja 0x4079d3
lea eax, [edi + ecx]
cmp edx, 0xf
mov dword [ebp - 0x268], eax
lea esi, [ebp - 0x278]
cmova esi, dword [ebp - 0x278]
lea eax, [ebp - 0x1c]
add esi, ecx
push eax
push esi
call fcn.0078c0d0
mov byte [esi + edi], 0
add esp, 0xc
lea esi, [ebp - 0x27c]
jmp 0x4079f2
lea eax, [ebp - 0x1c]
mov byte [ebp - 0x244], 0
push eax
push dword [ebp - 0x244]
lea ecx, [ebp - 0x27c]
push edi
call fcn.0040a7f0
mov esi, eax
mov byte [ebp - 4], 3
xorps xmm0, xmm0
push 8
mov dword [ebp - 0x240], 0
movups xmmword [ebp - 0x23c], xmm0
mov dword [ebp - 0x22c], 0
mov dword [ebp - 0x228], 0
call fcn.004dbb40
add esp, 4
lea ecx, [ebp - 0x240]
mov dword [eax + 4], 0
mov dword [ebp - 0x240], eax
push esi
mov dword [eax], ecx
call fcn.00409110
lea ecx, [ebp - 0x27c]
call fcn.00409040
mov eax, dword [ebp - 0x27c]
push 8
push eax
mov dword [ebp - 0x27c], 0
call fcn.00783b60
add esp, 8
lea ecx, [ebp - 0x260]
mov byte [ebp - 4], 6
call fcn.00409040
mov eax, dword [ebp - 0x260]
push 8
push eax
mov dword [ebp - 0x260], 0
call fcn.00783b60
add esp, 8
lea eax, [ebp - 0x23c]
cmp dword [ebp - 0x228], 0xf
cmova eax, dword [ebp - 0x23c]
push 0
push eax
lea eax, [ebp - 0x120]
push eax
call dword [sym.imp.KERNEL32.dll_CopyFileA]
lea ecx, [ebp - 0x120]
call fcn.00407610
lea ecx, [ebp - 0x240]
call fcn.00409040
mov eax, dword [ebp - 0x240]
push 8
push eax
mov dword [ebp - 0x240], 0
call fcn.00783b60
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.00783b00
mov esp, ebp
pop ebp
ret
call fcn.007841c0
int3