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

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x42dfad
mov eax, dword fs:[0]
push eax
sub esp, 0x494
mov eax, dword [0x43e144]
xor eax, ebp
mov dword [ebp - 0x10], eax
push esi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
lea eax, [ebp - 0x218]
push eax
push 0
push 0
push 0x1a
push 0
call dword [sym.imp.SHELL32.dll_SHGetFolderPathW]
test eax, eax
je 0x405f2f
push 0x437e68
lea ecx, [ebp - 0x438]
call fcn.00408ac0
lea ecx, [ebp - 0x438]
mov dword [ebp - 4], 0
call fcn.004058e0
mov ecx, dword [ebp - 0x424]
cmp ecx, 8
jb 0x4062a8
mov edx, dword [ebp - 0x438]
lea ecx, [ecx*2 + 2]
mov eax, edx
cmp ecx, 0x1000
jb 0x40629a
mov edx, dword [eax - 4]
add ecx, 0x23
sub eax, edx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x4062c2
jmp 0x40629a
lea eax, ds:[ebp - 0x218]
push eax
lea ecx, [ebp - 0x49c]
call fcn.00408ac0
push ecx
mov edx, eax
mov dword [ebp - 4], 1
lea ecx, [ebp - 0x450]
call fcn.00409b80
add esp, 4
mov byte [ebp - 4], 3
mov ecx, dword [ebp - 0x488]
cmp ecx, 8
jb 0x405fa8
mov edx, dword ds:[ebp - 0x49c]
lea ecx, [ecx*2 + 2]
mov eax, edx
cmp ecx, 0x1000
jb 0x405f9c
mov edx, dword [eax - 4]
add ecx, 0x23
sub eax, edx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x4062c7
push ecx
push edx
call fcn.0041684f
add esp, 8
xor eax, eax
mov dword [ebp - 0x48c], 0
cmp dword [ebp - 0x43c], 8
mov word [ebp - 0x49c], ax
lea eax, [ebp - 0x450]
cmovae eax, dword [ebp - 0x450]
push 0
push eax
mov dword [ebp - 0x488], 7
call dword [sym.imp.KERNEL32.dll_CreateDirectoryW]
mov esi, dword [sym.imp.KERNEL32.dll_GetLastError]
test eax, eax
jne 0x4060ee
call esi
nop word [eax + eax]
cmp eax, 0xb7
je 0x4060ee
call esi
mov edx, eax
lea ecx, [ebp - 0x480]
call fcn.00409800
lea eax, [ebp - 0x480]
mov byte [ebp - 4], 7
push eax
mov edx, 0x437f98
lea ecx, [ebp - 0x468]
call fcn.00409c40
add esp, 4
mov ecx, eax
mov byte [ebp - 4], 8
call fcn.004058e0
mov ecx, dword [ebp - 0x454]
cmp ecx, 8
jb 0x406088
mov edx, dword ds:[ebp - 0x468]
lea ecx, [ecx*2 + 2]
mov eax, edx
cmp ecx, 0x1000
jb 0x40607c
mov edx, dword [eax - 4]
add ecx, 0x23
sub eax, edx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x4062cc
push ecx
push edx
call fcn.0041684f
add esp, 8
mov ecx, dword [ebp - 0x46c]
xor eax, eax
mov dword [ebp - 0x458], 0
mov dword [ebp - 0x454], 7
mov word [ebp - 0x468], ax
cmp ecx, 8
jb 0x406268
mov edx, dword [ebp - 0x480]
lea ecx, [ecx*2 + 2]
mov eax, edx
cmp ecx, 0x1000
jb 0x40625e
mov edx, dword ds:[eax - 4]
add ecx, 0x23
sub eax, edx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x4062cc
jmp 0x40625e
push 0x104
lea eax, [ebp - 0x420]
push eax
push 0
call dword [sym.imp.KERNEL32.dll_GetModuleFileNameW]
push ecx
lea edx, [ebp - 0x450]
lea ecx, [ebp - 0x438]
call fcn.00409a40
add esp, 4
mov byte [ebp - 4], 4
lea eax, [ebp - 0x438]
cmp dword [ebp - 0x424], 8
push 0
cmovae eax, dword [ebp - 0x438]
push eax
lea eax, [ebp - 0x420]
push eax
call dword [sym.imp.KERNEL32.dll_CopyFileW]
test eax, eax
jne 0x406228
call esi
mov edx, eax
lea ecx, [ebp - 0x480]
call fcn.00409800
lea eax, [ebp - 0x480]
mov byte [ebp - 4], 5
push eax
mov edx, 0x437f54
lea ecx, [ebp - 0x468]
call fcn.00409c40
add esp, 4
mov ecx, eax
mov byte [ebp - 4], 6
call fcn.004058e0
mov ecx, dword [ebp - 0x454]
cmp ecx, 8
jb 0x4061c8
mov edx, dword [ebp - 0x468]
lea ecx, [ecx*2 + 2]
mov eax, edx
cmp ecx, 0x1000
jb 0x4061bc
mov edx, dword [eax - 4]
add ecx, 0x23
sub eax, edx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x4062d1
push ecx
push edx
call fcn.0041684f
add esp, 8
mov ecx, dword [ebp - 0x46c]
xor eax, eax
mov dword [ebp - 0x458], 0
mov dword [ebp - 0x454], 7
mov word [ebp - 0x468], ax
cmp ecx, 8
jb 0x406228
mov edx, dword ds:[ebp - 0x480]
lea ecx, [ecx*2 + 2]
mov eax, edx
cmp ecx, 0x1000
jb 0x40621c
mov edx, dword [eax - 4]
add ecx, 0x23
sub eax, edx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x4062d1
push ecx
push edx
call fcn.0041684f
add esp, 8
mov ecx, dword [ebp - 0x424]
cmp ecx, 8
jb 0x406268
mov edx, dword [ebp - 0x438]
lea ecx, [ecx*2 + 2]
mov eax, edx
cmp ecx, 0x1000
jb 0x40625e
mov edx, dword [eax - 4]
add ecx, 0x23
sub eax, edx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x4062d6
push ecx
push edx
call fcn.0041684f
add esp, 8
mov ecx, dword [ebp - 0x43c]
cmp ecx, 8
jb 0x4062a8
mov edx, dword [ebp - 0x450]
lea ecx, [ecx*2 + 2]
mov eax, edx
cmp ecx, 0x1000
jb 0x40629a
mov edx, dword [eax - 4]
add ecx, 0x23
sub eax, edx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x4062db
push ecx
push edx
call fcn.0041684f
add esp, 8
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop esi
mov ecx, dword [ebp - 0x10]
xor ecx, ebp
call fcn.004163f6
mov esp, ebp
pop ebp
ret
call fcn.0041c79f
call fcn.0041c79f
call fcn.0041c79f
call fcn.0041c79f
call fcn.0041c79f
nop dword [eax + eax]
call fcn.0041c79f
int3