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

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x684
mov eax, dword [0x441044]
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.004238b0
add esp, 0xc
xor edx, edx
push 0x206
push edx
lea eax, [ebp - 0x466]
push eax
mov word [ebp - 0x468], dx
call fcn.004238b0
add esp, 0xc
xor ecx, ecx
push 0x206
push ecx
lea edx, [ebp - 0x25e]
push edx
mov word [ebp - 0x260], cx
call fcn.004238b0
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 0x4050b0
mov edx, dword [str.SMR7]
mov ecx, dword [0x435a54]
mov dword [eax], edx
mov edx, dword [0x435a58]
mov dword [eax + 4], ecx
push 0
mov dword [eax + 8], edx
lea eax, [ebp - 0x670]
push 0
push eax
call fcn.00404730
add esp, 0xc
lea ecx, [ebp - 0x670]
push 0
push ecx
call fcn.0041c33e
add esp, 8
cmp eax, 0xffffffff
jne 0x40510e
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 0x405160
movzx ecx, word [ebp + eax - 0x58]
mov word [ebp + eax - 0x468], cx
add eax, 2
test cx, cx
jne 0x405160
lea edi, [ebp - 0x468]
add edi, 0xfffffffe
mov edi, edi
mov ax, word [edi + 2]
add edi, 2
test ax, ax
jne 0x405180
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 0x4051a0
lea edi, [ebp - 0x260]
add edi, 0xfffffffe
mov ax, word [edi + 2]
add edi, 2
test ax, ax
jne 0x4051c1
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 0x4051e0
lea edi, [ebp - 0x260]
sub eax, edx
add edi, 0xfffffffe
mov cx, word [edi + 2]
add edi, 2
test cx, cx
jne 0x4051f6
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 0x405260
lea edi, [ebp - 0x468]
add edi, 0xfffffffe
mov edi, edi
mov ax, word [edi + 2]
add edi, 2
test ax, ax
jne 0x405280
mov ecx, 0xb
mov esi, 0x435ae4
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 0x4052a0
lea edi, [ebp - 0x260]
add edi, 0xfffffffe
mov ax, word [edi + 2]
add edi, 2
test ax, ax
jne 0x4052c1
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 0x4052e0
lea edi, [ebp - 0x260]
sub eax, edx
add edi, 0xfffffffe
mov cx, word [edi + 2]
add edi, 2
test cx, cx
jne 0x4052f6
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 0x405360
movzx ecx, word [ebp + eax - 0x58]
mov word [ebp + eax - 0x468], cx
add eax, 2
test cx, cx
jne 0x405360
lea edi, [ebp - 0x468]
add edi, 0xfffffffe
mov edi, edi
mov ax, word [edi + 2]
add edi, 2
test ax, ax
jne 0x405380
mov ecx, 7
mov esi, 0x435b38
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 0x4053a0
lea eax, [ebp - 0x260]
add eax, 0xfffffffe
mov cx, word [eax + 2]
add eax, 2
test cx, cx
jne 0x4053c1
mov ecx, dword [str.wmcHook7.]
mov edx, dword [0x435b58]
mov dword [eax], ecx
mov ecx, dword [0x435b5c]
mov dword [eax + 4], edx
mov edx, dword [0x435b60]
mov dword [eax + 8], ecx
mov ecx, dword [0x435b64]
mov dword [eax + 0xc], edx
mov dx, word [0x435b68]
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 0x405410
lea edi, [ebp - 0x260]
sub eax, edx
add edi, 0xfffffffe
mov cx, word [edi + 2]
add edi, 2
test cx, cx
jne 0x405426
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 0x405490
movzx ecx, word [ebp + eax - 0x58]
mov word [ebp + eax - 0x468], cx
add eax, 2
test cx, cx
jne 0x405490
lea edi, [ebp - 0x468]
add edi, 0xfffffffe
mov edi, edi
mov ax, word [edi + 2]
add edi, 2
test ax, ax
jne 0x4054b0
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 0x4054d0
lea edi, [ebp - 0x260]
add edi, 0xfffffffe
mov ax, word [edi + 2]
add edi, 2
test ax, ax
jne 0x4054f1
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 0x405510
lea edi, [ebp - 0x260]
sub eax, edx
add edi, 0xfffffffe
mov cx, word [edi + 2]
add edi, 2
test cx, cx
jne 0x405526
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.0041bcde
mov esp, ebp
pop ebp
ret