Function at 0x405f00
Capabilities:
Create directory
Move file
Query environment variable

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x684
mov eax, dword [0x446044]
xor eax, ebp
mov dword [ebp - 4], eax
push ebx
push esi
push edi
xor eax, eax
push 0x206
push eax
lea ecx, [ebp - 0x66e]
push ecx
mov word [ebp - 0x670], ax
call fcn.00426670
add esp, 0xc
xor edx, edx
push 0x206
push edx
lea eax, [ebp - 0x466]
push eax
mov word [ebp - 0x468], dx
call fcn.00426670
add esp, 0xc
xor ecx, ecx
push 0x206
push ecx
lea edx, [ebp - 0x25e]
push edx
mov word [ebp - 0x260], cx
call fcn.00426670
xor eax, eax
add esp, 0xc
mov ecx, 0xd
mov esi, str.C:Program_FilesWW2017CF
lea edi, [ebp - 0x58]
rep movsd dword es:[edi], dword [esi]
push 0x104
lea ecx, [ebp - 0x670]
push ecx
push str._TEMP_
mov word [ebp - 0x24], ax
mov dword [ebp - 0x22], eax
mov dword [ebp - 0x1e], eax
mov dword [ebp - 0x1a], eax
mov dword [ebp - 0x16], eax
mov dword [ebp - 0x12], eax
mov dword [ebp - 0xe], eax
mov dword [ebp - 0xa], eax
mov word [ebp - 6], ax
call dword [sym.imp.KERNEL32.dll_ExpandEnvironmentStringsW]
lea eax, [ebp - 0x670]
add eax, 0xfffffffe
mov edi, edi
mov cx, word [eax + 2]
add eax, 2
test cx, cx
jne 0x405fc0
mov edx, dword [str.SMR7]
mov ecx, dword [0x43925c]
mov dword [eax], edx
mov edx, dword [0x439260]
mov dword [eax + 4], ecx
push 0
mov dword [eax + 8], edx
lea eax, [ebp - 0x670]
push 0
push eax
call fcn.00405640
add esp, 0xc
lea ecx, [ebp - 0x670]
push 0
push ecx
call fcn.0041ee1e
add esp, 8
cmp eax, 0xffffffff
jne 0x40601e
push 0
lea edx, [ebp - 0x670]
push edx
call dword [sym.imp.KERNEL32.dll_CreateDirectoryW]
lea eax, [ebp - 0x680]
push eax
call dword [sym.imp.KERNEL32.dll_GetLocalTime]
movzx ecx, word [ebp - 0x674]
movzx edx, word [ebp - 0x676]
movzx eax, word [ebp - 0x678]
push ecx
movzx ecx, word [ebp - 0x67a]
push edx
movzx edx, word [ebp - 0x67e]
push eax
push ecx
push edx
lea eax, [ebp - 0x24]
push str._02u_02u_02u_02u_02u
push eax
call dword [sym.imp.USER32.dll_wsprintfW]
add esp, 0x1c
xor eax, eax
jmp 0x406070
movzx ecx, word [ebp + eax - 0x58]
mov word [ebp + eax - 0x468], cx
add eax, 2
test cx, cx
jne 0x406070
lea edi, [ebp - 0x468]
add edi, 0xfffffffe
mov edi, edi
mov ax, word [edi + 2]
add edi, 2
test ax, ax
jne 0x406090
mov ecx, 0xc
mov esi, str.wmcWatermark_DLL64.dll
rep movsd dword es:[edi], dword [esi]
xor eax, eax
lea ebx, [ebx]
movzx ecx, word [ebp + eax - 0x670]
mov word [ebp + eax - 0x260], cx
add eax, 2
test cx, cx
jne 0x4060b0
lea edi, [ebp - 0x260]
add edi, 0xfffffffe
mov ax, word [edi + 2]
add edi, 2
test ax, ax
jne 0x4060d1
mov ecx, 0xa
mov esi, str.wmcWatermark_DLL64.
rep movsd dword es:[edi], dword [esi]
lea eax, [ebp - 0x24]
movsw word es:[edi], word [esi]
mov edx, eax
mov cx, word [eax]
add eax, 2
test cx, cx
jne 0x4060f0
lea edi, [ebp - 0x260]
sub eax, edx
add edi, 0xfffffffe
mov cx, word [edi + 2]
add edi, 2
test cx, cx
jne 0x406106
mov ebx, dword [sym.imp.KERNEL32.dll_MoveFileW]
mov ecx, eax
shr ecx, 2
mov esi, edx
rep movsd dword es:[edi], dword [esi]
mov ecx, eax
and ecx, 3
rep movsb byte es:[edi], byte [esi]
lea ecx, [ebp - 0x260]
push ecx
lea edx, [ebp - 0x468]
push edx
call ebx
xor eax, eax
movzx edx, ax
mov eax, edx
shl edx, 0x10
or eax, edx
mov ecx, 0x82
lea edi, [ebp - 0x468]
rep stosd dword es:[edi], eax
xor eax, eax
movzx edx, ax
mov eax, edx
shl edx, 0x10
or eax, edx
mov ecx, 0x82
lea edi, [ebp - 0x260]
rep stosd dword es:[edi], eax
xor eax, eax
lea esp, [esp]
movzx ecx, word [ebp + eax - 0x58]
mov word [ebp + eax - 0x468], cx
add eax, 2
test cx, cx
jne 0x406170
lea edi, [ebp - 0x468]
add edi, 0xfffffffe
mov edi, edi
mov ax, word [edi + 2]
add edi, 2
test ax, ax
jne 0x406190
mov ecx, 0xb
mov esi, 0x4392ec
rep movsd dword es:[edi], dword [esi]
xor eax, eax
lea ebx, [ebx]
movzx ecx, word [ebp + eax - 0x670]
mov word [ebp + eax - 0x260], cx
add eax, 2
test cx, cx
jne 0x4061b0
lea edi, [ebp - 0x260]
add edi, 0xfffffffe
mov ax, word [edi + 2]
add edi, 2
test ax, ax
jne 0x4061d1
mov ecx, 9
mov esi, str.wmcWatermark_DLL.
rep movsd dword es:[edi], dword [esi]
lea eax, [ebp - 0x24]
movsw word es:[edi], word [esi]
mov edx, eax
mov cx, word [eax]
add eax, 2
test cx, cx
jne 0x4061f0
lea edi, [ebp - 0x260]
sub eax, edx
add edi, 0xfffffffe
mov cx, word [edi + 2]
add edi, 2
test cx, cx
jne 0x406206
mov ecx, eax
shr ecx, 2
mov esi, edx
rep movsd dword es:[edi], dword [esi]
mov ecx, eax
and ecx, 3
lea eax, [ebp - 0x260]
rep movsb byte es:[edi], byte [esi]
push eax
lea ecx, [ebp - 0x468]
push ecx
call ebx
xor eax, eax
movzx edx, ax
mov eax, edx
shl edx, 0x10
or eax, edx
mov ecx, 0x82
lea edi, [ebp - 0x468]
rep stosd dword es:[edi], eax
xor eax, eax
movzx edx, ax
mov eax, edx
shl edx, 0x10
or eax, edx
mov ecx, 0x82
lea edi, [ebp - 0x260]
rep stosd dword es:[edi], eax
xor eax, eax
jmp 0x406270
movzx ecx, word [ebp + eax - 0x58]
mov word [ebp + eax - 0x468], cx
add eax, 2
test cx, cx
jne 0x406270
lea edi, [ebp - 0x468]
add edi, 0xfffffffe
mov edi, edi
mov ax, word [edi + 2]
add edi, 2
test ax, ax
jne 0x406290
mov ecx, 7
mov esi, 0x439340
rep movsd dword es:[edi], dword [esi]
xor eax, eax
lea ebx, [ebx]
movzx ecx, word [ebp + eax - 0x670]
mov word [ebp + eax - 0x260], cx
add eax, 2
test cx, cx
jne 0x4062b0
lea eax, [ebp - 0x260]
add eax, 0xfffffffe
mov cx, word [eax + 2]
add eax, 2
test cx, cx
jne 0x4062d1
mov ecx, dword [str.wmcHook7.]
mov edx, dword [0x439360]
mov dword [eax], ecx
mov ecx, dword [0x439364]
mov dword [eax + 4], edx
mov edx, dword [0x439368]
mov dword [eax + 8], ecx
mov ecx, dword [0x43936c]
mov dword [eax + 0xc], edx
mov dx, word [0x439370]
mov dword [eax + 0x10], ecx
mov word [eax + 0x14], dx
lea eax, [ebp - 0x24]
mov edx, eax
lea esp, [esp]
mov cx, word [eax]
add eax, 2
test cx, cx
jne 0x406320
lea edi, [ebp - 0x260]
sub eax, edx
add edi, 0xfffffffe
mov cx, word [edi + 2]
add edi, 2
test cx, cx
jne 0x406336
mov ecx, eax
shr ecx, 2
mov esi, edx
rep movsd dword es:[edi], dword [esi]
mov ecx, eax
and ecx, 3
lea eax, [ebp - 0x260]
rep movsb byte es:[edi], byte [esi]
push eax
lea ecx, [ebp - 0x468]
push ecx
call ebx
xor eax, eax
movzx edx, ax
mov eax, edx
shl edx, 0x10
or eax, edx
mov ecx, 0x82
lea edi, [ebp - 0x468]
rep stosd dword es:[edi], eax
xor eax, eax
movzx edx, ax
mov eax, edx
shl edx, 0x10
or eax, edx
mov ecx, 0x82
lea edi, [ebp - 0x260]
rep stosd dword es:[edi], eax
xor eax, eax
jmp 0x4063a0
movzx ecx, word [ebp + eax - 0x58]
mov word [ebp + eax - 0x468], cx
add eax, 2
test cx, cx
jne 0x4063a0
lea edi, [ebp - 0x468]
add edi, 0xfffffffe
mov edi, edi
mov ax, word [edi + 2]
add edi, 2
test ax, ax
jne 0x4063c0
mov ecx, 8
mov esi, str.wmcHook764.dll
rep movsd dword es:[edi], dword [esi]
xor eax, eax
lea ebx, [ebx]
movzx ecx, word [ebp + eax - 0x670]
mov word [ebp + eax - 0x260], cx
add eax, 2
test cx, cx
jne 0x4063e0
lea edi, [ebp - 0x260]
add edi, 0xfffffffe
mov ax, word [edi + 2]
add edi, 2
test ax, ax
jne 0x406401
mov ecx, 6
mov esi, str.wmcHook764.
rep movsd dword es:[edi], dword [esi]
lea eax, [ebp - 0x24]
movsw word es:[edi], word [esi]
mov edx, eax
mov cx, word [eax]
add eax, 2
test cx, cx
jne 0x406420
lea edi, [ebp - 0x260]
sub eax, edx
add edi, 0xfffffffe
mov cx, word [edi + 2]
add edi, 2
test cx, cx
jne 0x406436
mov ecx, eax
shr ecx, 2
mov esi, edx
rep movsd dword es:[edi], dword [esi]
mov ecx, eax
and ecx, 3
lea eax, [ebp - 0x260]
rep movsb byte es:[edi], byte [esi]
push eax
lea ecx, [ebp - 0x468]
push ecx
call ebx
mov ecx, dword [ebp - 4]
pop edi
pop esi
xor ecx, ebp
mov al, 1
pop ebx
call fcn.0041e7be
mov esp, ebp
pop ebp
ret