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

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x684
mov eax, dword [0x447044]
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.004272d0
add esp, 0xc
xor edx, edx
push 0x206
push edx
lea eax, [ebp - 0x466]
push eax
mov word [ebp - 0x468], dx
call fcn.004272d0
add esp, 0xc
xor ecx, ecx
push 0x206
push ecx
lea edx, [ebp - 0x25e]
push edx
mov word [ebp - 0x260], cx
call fcn.004272d0
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 0x4068c0
mov edx, dword [str.SMR7]
mov ecx, dword [0x439cc4]
mov dword [eax], edx
mov edx, dword [0x439cc8]
mov dword [eax + 4], ecx
push 0
mov dword [eax + 8], edx
lea eax, [ebp - 0x670]
push 0
push eax
call fcn.00405f40
add esp, 0xc
lea ecx, [ebp - 0x670]
push 0
push ecx
call fcn.0041fb9e
add esp, 8
cmp eax, 0xffffffff
jne 0x40691e
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 0x406970
movzx ecx, word [ebp + eax - 0x58]
mov word [ebp + eax - 0x468], cx
add eax, 2
test cx, cx
jne 0x406970
lea edi, [ebp - 0x468]
add edi, 0xfffffffe
mov edi, edi
mov ax, word [edi + 2]
add edi, 2
test ax, ax
jne 0x406990
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 0x4069b0
lea edi, [ebp - 0x260]
add edi, 0xfffffffe
mov ax, word [edi + 2]
add edi, 2
test ax, ax
jne 0x4069d1
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 0x4069f0
lea edi, [ebp - 0x260]
sub eax, edx
add edi, 0xfffffffe
mov cx, word [edi + 2]
add edi, 2
test cx, cx
jne 0x406a06
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 0x406a70
lea edi, [ebp - 0x468]
add edi, 0xfffffffe
mov edi, edi
mov ax, word [edi + 2]
add edi, 2
test ax, ax
jne 0x406a90
mov ecx, 0xb
mov esi, 0x439d54
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 0x406ab0
lea edi, [ebp - 0x260]
add edi, 0xfffffffe
mov ax, word [edi + 2]
add edi, 2
test ax, ax
jne 0x406ad1
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 0x406af0
lea edi, [ebp - 0x260]
sub eax, edx
add edi, 0xfffffffe
mov cx, word [edi + 2]
add edi, 2
test cx, cx
jne 0x406b06
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 0x406b70
movzx ecx, word [ebp + eax - 0x58]
mov word [ebp + eax - 0x468], cx
add eax, 2
test cx, cx
jne 0x406b70
lea edi, [ebp - 0x468]
add edi, 0xfffffffe
mov edi, edi
mov ax, word [edi + 2]
add edi, 2
test ax, ax
jne 0x406b90
mov ecx, 7
mov esi, 0x439da8
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 0x406bb0
lea eax, [ebp - 0x260]
add eax, 0xfffffffe
mov cx, word [eax + 2]
add eax, 2
test cx, cx
jne 0x406bd1
mov ecx, dword [str.wmcHook7.]
mov edx, dword [0x439dc8]
mov dword [eax], ecx
mov ecx, dword [0x439dcc]
mov dword [eax + 4], edx
mov edx, dword [0x439dd0]
mov dword [eax + 8], ecx
mov ecx, dword [0x439dd4]
mov dword [eax + 0xc], edx
mov dx, word [0x439dd8]
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 0x406c20
lea edi, [ebp - 0x260]
sub eax, edx
add edi, 0xfffffffe
mov cx, word [edi + 2]
add edi, 2
test cx, cx
jne 0x406c36
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 0x406ca0
movzx ecx, word [ebp + eax - 0x58]
mov word [ebp + eax - 0x468], cx
add eax, 2
test cx, cx
jne 0x406ca0
lea edi, [ebp - 0x468]
add edi, 0xfffffffe
mov edi, edi
mov ax, word [edi + 2]
add edi, 2
test ax, ax
jne 0x406cc0
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 0x406ce0
lea edi, [ebp - 0x260]
add edi, 0xfffffffe
mov ax, word [edi + 2]
add edi, 2
test ax, ax
jne 0x406d01
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 0x406d20
lea edi, [ebp - 0x260]
sub eax, edx
add edi, 0xfffffffe
mov cx, word [edi + 2]
add edi, 2
test cx, cx
jne 0x406d36
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.0041f53e
mov esp, ebp
pop ebp
ret