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

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x42940d
mov eax, dword fs:[0]
push eax
sub esp, 0x494
mov eax, dword [0x43606c]
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 0x4042cf
push 0x431d58
lea ecx, [ebp - 0x438]
call fcn.00406480
lea ecx, [ebp - 0x438]
mov dword [ebp - 4], 0
call fcn.00403c40
mov ecx, dword [ebp - 0x424]
cmp ecx, 8
jb 0x404648
mov edx, dword [ebp - 0x438]
lea ecx, [ecx*2 + 2]
mov eax, edx
cmp ecx, 0x1000
jb 0x40463a
mov edx, dword [eax - 4]
add ecx, 0x23
sub eax, edx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x404662
jmp 0x40463a
lea eax, ds:[ebp - 0x218]
push eax
lea ecx, [ebp - 0x49c]
call fcn.00406480
push ecx
mov edx, eax
mov dword [ebp - 4], 1
lea ecx, [ebp - 0x450]
call fcn.004071e0
add esp, 4
mov byte [ebp - 4], 3
mov ecx, dword [ebp - 0x488]
cmp ecx, 8
jb 0x404348
mov edx, dword ds:[ebp - 0x49c]
lea ecx, [ecx*2 + 2]
mov eax, edx
cmp ecx, 0x1000
jb 0x40433c
mov edx, dword [eax - 4]
add ecx, 0x23
sub eax, edx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x404667
push ecx
push edx
call fcn.00411d37
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 0x40448e
call esi
nop word [eax + eax]
cmp eax, 0xb7
je 0x40448e
call esi
mov edx, eax
lea ecx, [ebp - 0x480]
call fcn.00406e80
lea eax, [ebp - 0x480]
mov byte [ebp - 4], 7
push eax
mov edx, 0x431e88
lea ecx, [ebp - 0x468]
call fcn.004072a0
add esp, 4
mov ecx, eax
mov byte [ebp - 4], 8
call fcn.00403c40
mov ecx, dword [ebp - 0x454]
cmp ecx, 8
jb 0x404428
mov edx, dword ds:[ebp - 0x468]
lea ecx, [ecx*2 + 2]
mov eax, edx
cmp ecx, 0x1000
jb 0x40441c
mov edx, dword [eax - 4]
add ecx, 0x23
sub eax, edx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x40466c
push ecx
push edx
call fcn.00411d37
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 0x404608
mov edx, dword [ebp - 0x480]
lea ecx, [ecx*2 + 2]
mov eax, edx
cmp ecx, 0x1000
jb 0x4045fe
mov edx, dword ds:[eax - 4]
add ecx, 0x23
sub eax, edx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x40466c
jmp 0x4045fe
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.004070a0
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 0x4045c8
call esi
mov edx, eax
lea ecx, [ebp - 0x480]
call fcn.00406e80
lea eax, [ebp - 0x480]
mov byte [ebp - 4], 5
push eax
mov edx, 0x431e44
lea ecx, [ebp - 0x468]
call fcn.004072a0
add esp, 4
mov ecx, eax
mov byte [ebp - 4], 6
call fcn.00403c40
mov ecx, dword [ebp - 0x454]
cmp ecx, 8
jb 0x404568
mov edx, dword [ebp - 0x468]
lea ecx, [ecx*2 + 2]
mov eax, edx
cmp ecx, 0x1000
jb 0x40455c
mov edx, dword [eax - 4]
add ecx, 0x23
sub eax, edx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x404671
push ecx
push edx
call fcn.00411d37
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 0x4045c8
mov edx, dword ds:[ebp - 0x480]
lea ecx, [ecx*2 + 2]
mov eax, edx
cmp ecx, 0x1000
jb 0x4045bc
mov edx, dword [eax - 4]
add ecx, 0x23
sub eax, edx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x404671
push ecx
push edx
call fcn.00411d37
add esp, 8
mov ecx, dword [ebp - 0x424]
cmp ecx, 8
jb 0x404608
mov edx, dword [ebp - 0x438]
lea ecx, [ecx*2 + 2]
mov eax, edx
cmp ecx, 0x1000
jb 0x4045fe
mov edx, dword [eax - 4]
add ecx, 0x23
sub eax, edx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x404676
push ecx
push edx
call fcn.00411d37
add esp, 8
mov ecx, dword [ebp - 0x43c]
cmp ecx, 8
jb 0x404648
mov edx, dword [ebp - 0x450]
lea ecx, [ecx*2 + 2]
mov eax, edx
cmp ecx, 0x1000
jb 0x40463a
mov edx, dword [eax - 4]
add ecx, 0x23
sub eax, edx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x40467b
push ecx
push edx
call fcn.00411d37
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.00411993
mov esp, ebp
pop ebp
ret
call fcn.00417e98
call fcn.00417e98
call fcn.00417e98
call fcn.00417e98
call fcn.00417e98
nop dword [eax + eax]
call fcn.00417e98
int3