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

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x684
mov eax, dword [0x44c044]
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.00428490
add esp, 0xc
xor edx, edx
push 0x206
push edx
lea eax, [ebp - 0x466]
push eax
mov word [ebp - 0x468], dx
call fcn.00428490
add esp, 0xc
xor ecx, ecx
push 0x206
push ecx
lea edx, [ebp - 0x25e]
push edx
mov word [ebp - 0x260], cx
call fcn.00428490
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 0x408e50
mov edx, dword [str.SMR7]
mov ecx, dword [0x43e5cc]
mov dword [eax], edx
mov edx, dword [0x43e5d0]
mov dword [eax + 4], ecx
push 0
mov dword [eax + 8], edx
lea eax, [ebp - 0x670]
push 0
push eax
call fcn.004084d0
add esp, 0xc
lea ecx, [ebp - 0x670]
push 0
push ecx
call fcn.00422560
add esp, 8
cmp eax, 0xffffffff
jne 0x408eae
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 0x408f00
movzx ecx, word [ebp + eax - 0x58]
mov word [ebp + eax - 0x468], cx
add eax, 2
test cx, cx
jne 0x408f00
lea edi, [ebp - 0x468]
add edi, 0xfffffffe
mov edi, edi
mov ax, word [edi + 2]
add edi, 2
test ax, ax
jne 0x408f20
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 0x408f40
lea edi, [ebp - 0x260]
add edi, 0xfffffffe
mov ax, word [edi + 2]
add edi, 2
test ax, ax
jne 0x408f61
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 0x408f80
lea edi, [ebp - 0x260]
sub eax, edx
add edi, 0xfffffffe
mov cx, word [edi + 2]
add edi, 2
test cx, cx
jne 0x408f96
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 0x409000
lea edi, [ebp - 0x468]
add edi, 0xfffffffe
mov edi, edi
mov ax, word [edi + 2]
add edi, 2
test ax, ax
jne 0x409020
mov ecx, 0xb
mov esi, 0x43e65c
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 0x409040
lea edi, [ebp - 0x260]
add edi, 0xfffffffe
mov ax, word [edi + 2]
add edi, 2
test ax, ax
jne 0x409061
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 0x409080
lea edi, [ebp - 0x260]
sub eax, edx
add edi, 0xfffffffe
mov cx, word [edi + 2]
add edi, 2
test cx, cx
jne 0x409096
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 0x409100
movzx ecx, word [ebp + eax - 0x58]
mov word [ebp + eax - 0x468], cx
add eax, 2
test cx, cx
jne 0x409100
lea edi, [ebp - 0x468]
add edi, 0xfffffffe
mov edi, edi
mov ax, word [edi + 2]
add edi, 2
test ax, ax
jne 0x409120
mov ecx, 7
mov esi, 0x43e6b0
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 0x409140
lea eax, [ebp - 0x260]
add eax, 0xfffffffe
mov cx, word [eax + 2]
add eax, 2
test cx, cx
jne 0x409161
mov ecx, dword [str.wmcHook7.]
mov edx, dword [0x43e6d0]
mov dword [eax], ecx
mov ecx, dword [0x43e6d4]
mov dword [eax + 4], edx
mov edx, dword [0x43e6d8]
mov dword [eax + 8], ecx
mov ecx, dword [0x43e6dc]
mov dword [eax + 0xc], edx
mov dx, word [0x43e6e0]
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 0x4091b0
lea edi, [ebp - 0x260]
sub eax, edx
add edi, 0xfffffffe
mov cx, word [edi + 2]
add edi, 2
test cx, cx
jne 0x4091c6
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 0x409230
movzx ecx, word [ebp + eax - 0x58]
mov word [ebp + eax - 0x468], cx
add eax, 2
test cx, cx
jne 0x409230
lea edi, [ebp - 0x468]
add edi, 0xfffffffe
mov edi, edi
mov ax, word [edi + 2]
add edi, 2
test ax, ax
jne 0x409250
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 0x409270
lea edi, [ebp - 0x260]
add edi, 0xfffffffe
mov ax, word [edi + 2]
add edi, 2
test ax, ax
jne 0x409291
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 0x4092b0
lea edi, [ebp - 0x260]
sub eax, edx
add edi, 0xfffffffe
mov cx, word [edi + 2]
add edi, 2
test cx, cx
jne 0x4092c6
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.004217e4
mov esp, ebp
pop ebp
ret