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

Disassembly:
push ebx
mov ebx, esp
sub esp, 8
and esp, 0xfffffff8
add esp, 4
push ebp
mov ebp, dword [ebx + 4]
mov dword [esp + 4], ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x42cc81
mov eax, dword fs:[0]
push eax
push ebx
sub esp, 0x464
mov eax, dword [0x44106c]
xor eax, ebp
mov dword [ebp - 0x14], eax
push esi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
lea eax, [ebp - 0x220]
push eax
push 0
push 0
push 0x1a
push 0
call dword [sym.imp.SHELL32.dll_SHGetFolderPathW]
test eax, eax
js 0x403015
xor eax, eax
mov dword [ebp - 0x460], 0
lea ecx, [ebp - 0x220]
mov dword [ebp - 0x45c], 7
mov word [ebp - 0x470], ax
lea edx, [ecx + 2]
mov ax, word [ecx]
add ecx, 2
test ax, ax
jne 0x402df3
sub ecx, edx
lea eax, [ebp - 0x220]
sar ecx, 1
push ecx
push eax
lea ecx, [ebp - 0x470]
call fcn.00404900
push 0x43c220
lea ecx, [ebp - 0x470]
mov dword [ebp - 4], 0
call fcn.004072c0
mov dword [ebp - 0x430], 0
xor ecx, ecx
mov dword [ebp - 0x42c], 0
movups xmm0, xmmword [eax]
movups xmmword [ebp - 0x440], xmm0
movq xmm0, qword [eax + 0x10]
movq qword [ebp - 0x430], xmm0
mov dword [eax + 0x10], 0
mov dword [eax + 0x14], 7
mov word [eax], cx
mov byte [ebp - 4], 2
mov edx, dword [ebp - 0x45c]
cmp edx, 8
jb 0x402eae
mov ecx, dword [ebp - 0x470]
lea edx, [edx*2 + 2]
mov eax, ecx
cmp edx, 0x1000
jb 0x402ea4
mov ecx, dword [ecx - 4]
add edx, 0x23
sub eax, ecx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x403057
push edx
push ecx
call fcn.00412b92
add esp, 8
xor eax, eax
mov dword [ebp - 0x460], 0
cmp dword [ebp - 0x42c], 8
mov word [ebp - 0x470], ax
lea eax, [ebp - 0x440]
cmovae eax, dword [ebp - 0x440]
push 0
push eax
mov dword [ebp - 0x45c], 7
call dword [sym.imp.KERNEL32.dll_CreateDirectoryW]
mov esi, dword [sym.imp.KERNEL32.dll_GetLastError]
test eax, eax
jne 0x402f21
call esi
cmp eax, 0xb7
je 0x402f21
call esi
push eax
push ecx
mov edx, 0x43c288
call fcn.00406130
add esp, 4
mov ecx, eax
call fcn.00403d50
push eax
call fcn.004063f0
add esp, 4
jmp 0x402fd7
push 0x104
lea eax, [ebp - 0x428]
push eax
push 0
call dword [sym.imp.KERNEL32.dll_GetModuleFileNameW]
push ecx
lea edx, [ebp - 0x440]
lea ecx, [ebp - 0x458]
call fcn.00405f70
add esp, 4
mov byte [ebp - 4], 3
lea eax, [ebp - 0x458]
cmp dword [ebp - 0x444], 8
push 0
cmovae eax, dword [ebp - 0x458]
push eax
lea eax, [ebp - 0x428]
push eax
call dword [sym.imp.KERNEL32.dll_CopyFileW]
test eax, eax
jne 0x402f97
call esi
push eax
push ecx
mov edx, 0x43c248
call fcn.00406130
add esp, 4
mov ecx, eax
call fcn.00403d50
push eax
call fcn.004063f0
add esp, 4
mov edx, dword [ebp - 0x444]
cmp edx, 8
jb 0x402fd7
mov ecx, dword [ebp - 0x458]
lea edx, [edx*2 + 2]
mov eax, ecx
cmp edx, 0x1000
jb 0x402fcd
mov ecx, dword [ecx - 4]
add edx, 0x23
sub eax, ecx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x40305c
push edx
push ecx
call fcn.00412b92
add esp, 8
mov edx, dword [ebp - 0x42c]
cmp edx, 8
jb 0x40303a
mov ecx, dword [ebp - 0x440]
lea edx, [edx*2 + 2]
mov eax, ecx
cmp edx, 0x1000
jb 0x403009
mov ecx, dword [ecx - 4]
add edx, 0x23
sub eax, ecx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x403061
push edx
push ecx
call fcn.00412b92
add esp, 8
jmp 0x40303a
call dword [sym.imp.KERNEL32.dll_GetLastError]
push eax
push ecx
mov edx, 0x43c2d0
call fcn.00406130
add esp, 4
mov ecx, eax
call fcn.00403d50
push eax
call fcn.004063f0
add esp, 4
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop esi
mov ecx, dword [ebp - 0x14]
xor ecx, ebp
call fcn.004127b4
mov esp, ebp
pop ebp
mov esp, ebx
pop ebx
ret
call fcn.00418ac6
call fcn.00418ac6
call fcn.00418ac6
int3