Function at 0x404c10
Capabilities:
Create directory
Get common file path

Disassembly:
push 0xffffffffffffffff
mov eax, dword fs:[0]
push 0x419f76
push eax
mov eax, 0x27ac
mov dword fs:[0], esp
call fcn.00408050
push ebx
push ebp
push esi
mov ebp, ecx
push edi
mov ecx, 0xa2
xor eax, eax
lea edi, [esp + 0x29c]
rep stosd dword es:[edi], eax
lea eax, [esp + 0x29c]
mov dword [esp + 0x28], ebp
push eax
push 0x104
call dword [sym.imp.KERNEL32.dll_GetTempPathW]
test eax, eax
jne 0x404cb3
mov ecx, 0xa2
lea edi, [esp + 0x29c]
rep stosd dword es:[edi], eax
push 0x41f1b8
call fcn.00407fac
add esp, 4
cmp eax, 0x143
jbe 0x404c89
mov eax, 0x143
jmp 0x404c96
push 0x41f1b8
call fcn.00407fac
add esp, 4
lea ecx, [eax + eax]
mov esi, 0x41f1b8
mov edx, ecx
lea edi, [esp + 0x29c]
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, edx
and ecx, 3
rep movsb byte es:[edi], byte [esi]
lea eax, [esp + 0x29c]
push str.SWUpdate_
push eax
call dword [sym.imp.SHLWAPI.dll_PathAppendW]
xor ebx, ebx
lea ecx, [esp + 0x29c]
push ebx
push ecx
push ebx
call dword [sym.imp.SHELL32.dll_SHCreateDirectoryExW]
lea edx, [esp + 0x72c]
push edx
call fcn.00404b10
mov ecx, 0x82
xor eax, eax
lea edi, [esp + 0x938]
push str.www.novoasoft.com
rep stosd dword es:[edi], eax
call fcn.00407fac
add esp, 8
cmp eax, 0x103
jbe 0x404d10
mov eax, 0x103
jmp 0x404d1d
push str.www.novoasoft.com
call fcn.00407fac
add esp, 4
lea ecx, [eax + eax]
mov esi, str.www.novoasoft.com
mov eax, ecx
lea edi, [esp + 0x934]
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, eax
xor eax, eax
and ecx, 3
push 0x4241b0
rep movsb byte es:[edi], byte [esi]
mov ecx, 0x82
lea edi, [esp + 0x528]
rep stosd dword es:[edi], eax
call fcn.00407fac
add esp, 4
cmp eax, 0x103
jbe 0x404d65
mov eax, 0x103
jmp 0x404d72
push 0x4241b0
call fcn.00407fac
add esp, 4
lea ecx, [eax + eax]
mov esi, 0x4241b0
mov edx, ecx
lea edi, [esp + 0x524]
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, edx
lea eax, [esp + 0x524]
and ecx, 3
push 0x41f214
rep movsb byte es:[edi], byte [esi]
push eax
call fcn.00407eee
mov ecx, 0x82
xor eax, eax
lea edi, [esp + 0x9c]
rep stosd dword es:[edi], eax
lea ecx, [esp + 0x2a4]
push ecx
call fcn.00407fac
add esp, 0xc
cmp eax, 0x103
jbe 0x404dcf
mov eax, 0x103
jmp 0x404ddf
lea edx, [esp + 0x29c]
push edx
call fcn.00407fac
add esp, 4
lea ecx, [eax + eax]
lea esi, [esp + 0x29c]
mov eax, ecx
lea edi, [esp + 0x94]
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, eax
push 0x41f214
and ecx, 3
rep movsb byte es:[edi], byte [esi]
lea ecx, [esp + 0x98]
push ecx
call fcn.00407eee
add esp, 8
lea edx, [esp + 0x94]
lea eax, [esp + 0x524]
lea ecx, [esp + 0x934]
push edx
push eax
push ecx
mov ecx, ebp
call fcn.004044a0
cmp eax, ebx
jbe 0x405264
push ebx
push 0x80
push 3
push ebx
push 1
lea edx, [esp + 0xa8]
push 0x80000000
push edx
call dword [sym.imp.KERNEL32.dll_CreateFileW]
mov ebp, eax
cmp ebp, 0xffffffff
je 0x405264
cmp ebp, ebx
je 0x405264
push ebp
lea ecx, [esp + 0x14]
call fcn.00403d20
mov dword [esp + 0x27c4], ebx
mov dword [esp + 0x14], ebx
mov dword [esp + 0x20], ebx
mov dword [esp + 0x1c], ebx
mov dword [esp + 0x18], ebx
mov ecx, 0x290
xor eax, eax
lea edi, [esp + 0xb3c]
push 0x400
rep stosd dword es:[edi], eax
lea eax, [esp + 0x1580]
lea ecx, [esp + 0x14]
push eax
mov byte [esp + 0x27cc], 1
call fcn.00403dc0
test eax, eax
je 0x405058
mov ecx, 0x290
xor eax, eax
lea edi, [esp + 0xb3c]
push 0x41f210
rep stosd dword es:[edi], eax
lea ecx, [esp + 0x1580]
push ecx
call fcn.00408ad5
mov esi, eax
add esp, 8
cmp esi, ebx
je 0x40503a
mov edx, esi
lea eax, [esp + 0x157c]
sub edx, eax
lea ecx, [esp + 0x157c]
sar edx, 1
push edx
lea edx, [esp + 0xb40]
push ecx
push edx
call fcn.0040875f
add esi, 2
push 0x41f210
push esi
call fcn.00408ad5
mov edi, eax
add esp, 0x14
cmp edi, ebx
je 0x40503a
sub eax, esi
lea ecx, [esp + 0xd44]
sar eax, 1
push eax
push esi
push ecx
call fcn.0040875f
lea esi, [edi + 2]
push 0x41f210
push esi
call fcn.00408ad5
mov edi, eax
add esp, 0x14
cmp edi, ebx
je 0x40503a
push esi
call fcn.00408736
lea esi, [edi + 2]
push 0x41f210
push esi
mov dword [esp + 0x1574], eax
call fcn.00408ad5
mov edi, eax
add esp, 0xc
cmp edi, ebx
je 0x40503a
mov edx, edi
lea eax, [esp + 0xf4c]
sub edx, esi
sar edx, 1
push edx
push esi
push eax
call fcn.0040875f
lea esi, [edi + 2]
push 0x41f210
push esi
call fcn.00408ad5
mov edi, eax
add esp, 0x14
cmp edi, ebx
je 0x40503a
mov ecx, edi
lea edx, [esp + 0x1154]
sub ecx, esi
sar ecx, 1
push ecx
push esi
push edx
call fcn.0040875f
lea esi, [edi + 2]
push 0x41f210
push esi
call fcn.00408ad5
add esp, 0x14
cmp eax, ebx
je 0x40503a
sub eax, esi
sar eax, 1
push eax
lea eax, [esp + 0x1360]
push esi
push eax
call fcn.0040875f
mov ecx, 0x290
lea esi, [esp + 0xb48]
lea edi, [esp + 0x1d88]
add esp, 0xc
rep movsd dword es:[edi], dword [esi]
mov esi, dword [esp + 0x18]
push 0xffffffffffffffff
lea ecx, [esi + 1]
push ecx
lea ecx, [esp + 0x1c]
call fcn.004036c0
mov eax, dword [esp + 0x14]
lea edx, [esi + esi*4]
mov ecx, 0x290
lea edi, [esi + edx*8]
lea esi, [esp + 0x1d7c]
shl edi, 6
add edi, eax
rep movsd dword es:[edi], dword [esi]
lea eax, [esp + 0x157c]
push 0x400
push eax
lea ecx, [esp + 0x18]
call fcn.00403dc0
test eax, eax
jne 0x404ec2
push ebp
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov ecx, dword [esp + 0x18]
lea ebp, [ecx - 1]
cmp ebp, ebx
mov dword [esp + 0x24], ebp
jl 0x4051a8
lea edx, [ebp + ebp*4]
lea ebp, [ebp + edx*8]
shl ebp, 6
mov eax, dword [esp + 0x14]
mov ecx, 0x82
lea edi, [esp + 0x94]
lea ebx, [eax + ebp]
xor eax, eax
rep stosd dword es:[edi], eax
lea ecx, [esp + 0x72c]
push ecx
call fcn.00407fac
add esp, 4
cmp eax, 0x103
jbe 0x4050b2
mov eax, 0x103
jmp 0x4050c2
lea edx, [esp + 0x72c]
push edx
call fcn.00407fac
add esp, 4
lea ecx, [eax + eax]
lea esi, [esp + 0x72c]
mov eax, ecx
lea edi, [esp + 0x94]
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, eax
lea edx, [esp + 0x94]
and ecx, 3
rep movsb byte es:[edi], byte [esi]
lea ecx, [ebx + 0x820]
push ecx
push edx
call fcn.00407eee
lea eax, [ebx + 0x208]
lea ecx, [esp + 0x9c]
push eax
push ecx
call fcn.00407eee
mov ecx, 8
xor eax, eax
lea edi, [esp + 0x3c]
lea edx, [esp + 0xa4]
rep stosd dword es:[edi], eax
stosb byte es:[edi], al
lea eax, [esp + 0x3c]
push edx
push eax
call fcn.00401eb0
add esp, 0x18
lea ecx, [esp + 0x50]
lea edx, [esp + 0x2c]
push 0x21
push ecx
push 0xffffffffffffffff
push edx
push 0
push 0
call dword [sym.imp.KERNEL32.dll_MultiByteToWideChar]
add ebx, 0x618
lea eax, [esp + 0x50]
push ebx
push eax
call fcn.00407fc9
add esp, 8
test eax, eax
jne 0x40518f
mov eax, dword [esp + 0x18]
mov edx, dword [esp + 0x24]
sub eax, edx
dec eax
je 0x40518b
lea ecx, [eax + eax*4]
lea edx, [eax + ecx*8]
mov eax, dword [esp + 0x14]
shl edx, 6
push edx
lea ecx, [eax + ebp + 0xa40]
lea edx, [eax + ebp]
push ecx
push edx
call fcn.004087a0
add esp, 0xc
dec dword [esp + 0x18]
mov eax, dword [esp + 0x24]
sub ebp, 0xa40
dec eax
test eax, eax
mov dword [esp + 0x24], eax
jge 0x40507d
xor ebx, ebx
cmp dword [esp + 0x18], ebx
jle 0x405243
mov ebx, dword [esp + 0x28]
lea ebp, [ebx + 0x824]
push ebp
call dword [sym.imp.KERNEL32.dll_EnterCriticalSection]
add ebx, 0x850
push 0xffffffffffffffff
push 0
mov ecx, ebx
call fcn.004036c0
mov edi, dword [ebx + 4]
mov eax, dword [esp + 0x18]
push 0xffffffffffffffff
lea ecx, [edi + eax]
push ecx
mov ecx, ebx
call fcn.004036c0
mov eax, dword [esp + 0x18]
mov esi, dword [esp + 0x14]
push ebp
lea edx, [eax + eax*4]
lea ecx, [eax + edx*8]
mov edx, dword [ebx]
lea eax, [edi + edi*4]
shl ecx, 6
lea edi, [edi + eax*8]
shl edi, 6
add edi, edx
mov edx, ecx
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, edx
and ecx, 3
rep movsb byte es:[edi], byte [esi]
call dword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
mov eax, dword [esp + 0x14]
push eax
call fcn.00407114
add esp, 4
lea ecx, [esp + 0x10]
mov dword [esp + 0x27c4], 0xffffffff
call fcn.00403d30
mov eax, 1
jmp 0x405266
mov ecx, dword [esp + 0x14]
push ecx
call fcn.00407114
add esp, 4
lea ecx, [esp + 0x10]
mov dword [esp + 0x27c4], 0xffffffff
call fcn.00403d30
xor eax, eax
mov ecx, dword [esp + 0x27bc]
pop edi
pop esi
pop ebp
pop ebx
mov dword fs:[0], ecx
add esp, 0x27b8
ret