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

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x684
mov eax, dword [0x43e044]
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.00422210
add esp, 0xc
xor edx, edx
push 0x206
push edx
lea eax, [ebp - 0x466]
push eax
mov word [ebp - 0x468], dx
call fcn.00422210
add esp, 0xc
xor ecx, ecx
push 0x206
push ecx
lea edx, [ebp - 0x25e]
push edx
mov word [ebp - 0x260], cx
call fcn.00422210
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 0x405040
mov edx, dword [str.SMR7]
mov ecx, dword [0x43398c]
mov dword [eax], edx
mov edx, dword [0x433990]
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.0041ad6e
add esp, 8
cmp eax, 0xffffffff
jne 0x40509e
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 0x4050f0
movzx ecx, word [ebp + eax - 0x58]
mov word [ebp + eax - 0x468], cx
add eax, 2
test cx, cx
jne 0x4050f0
lea edi, [ebp - 0x468]
add edi, 0xfffffffe
mov edi, edi
mov ax, word [edi + 2]
add edi, 2
test ax, ax
jne 0x405110
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 0x405130
lea edi, [ebp - 0x260]
add edi, 0xfffffffe
mov ax, word [edi + 2]
add edi, 2
test ax, ax
jne 0x405151
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 0x405170
lea edi, [ebp - 0x260]
sub eax, edx
add edi, 0xfffffffe
mov cx, word [edi + 2]
add edi, 2
test cx, cx
jne 0x405186
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 0x4051f0
lea edi, [ebp - 0x468]
add edi, 0xfffffffe
mov edi, edi
mov ax, word [edi + 2]
add edi, 2
test ax, ax
jne 0x405210
mov ecx, 0xb
mov esi, 0x433a1c
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 0x405230
lea edi, [ebp - 0x260]
add edi, 0xfffffffe
mov ax, word [edi + 2]
add edi, 2
test ax, ax
jne 0x405251
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 0x405270
lea edi, [ebp - 0x260]
sub eax, edx
add edi, 0xfffffffe
mov cx, word [edi + 2]
add edi, 2
test cx, cx
jne 0x405286
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 0x4052f0
movzx ecx, word [ebp + eax - 0x58]
mov word [ebp + eax - 0x468], cx
add eax, 2
test cx, cx
jne 0x4052f0
lea edi, [ebp - 0x468]
add edi, 0xfffffffe
mov edi, edi
mov ax, word [edi + 2]
add edi, 2
test ax, ax
jne 0x405310
mov ecx, 7
mov esi, 0x433a70
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 0x405330
lea eax, [ebp - 0x260]
add eax, 0xfffffffe
mov cx, word [eax + 2]
add eax, 2
test cx, cx
jne 0x405351
mov ecx, dword [str.wmcHook7.]
mov edx, dword [0x433a90]
mov dword [eax], ecx
mov ecx, dword [0x433a94]
mov dword [eax + 4], edx
mov edx, dword [0x433a98]
mov dword [eax + 8], ecx
mov ecx, dword [0x433a9c]
mov dword [eax + 0xc], edx
mov dx, word [0x433aa0]
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 0x4053a0
lea edi, [ebp - 0x260]
sub eax, edx
add edi, 0xfffffffe
mov cx, word [edi + 2]
add edi, 2
test cx, cx
jne 0x4053b6
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 0x405420
movzx ecx, word [ebp + eax - 0x58]
mov word [ebp + eax - 0x468], cx
add eax, 2
test cx, cx
jne 0x405420
lea edi, [ebp - 0x468]
add edi, 0xfffffffe
mov edi, edi
mov ax, word [edi + 2]
add edi, 2
test ax, ax
jne 0x405440
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 0x405460
lea edi, [ebp - 0x260]
add edi, 0xfffffffe
mov ax, word [edi + 2]
add edi, 2
test ax, ax
jne 0x405481
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 0x4054a0
lea edi, [ebp - 0x260]
sub eax, edx
add edi, 0xfffffffe
mov cx, word [edi + 2]
add edi, 2
test cx, cx
jne 0x4054b6
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.0041a70e
mov esp, ebp
pop ebp
ret