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

Disassembly:
push 0xffffffffffffffff
push 0x416776
mov eax, dword fs:[0]
push eax
sub esp, 0x218
mov eax, dword [0x41c060]
xor eax, esp
mov dword [esp + 0x214], eax
push ebx
push esi
push edi
mov eax, dword [0x41c060]
xor eax, esp
push eax
lea eax, [esp + 0x228]
mov dword fs:[0], eax
mov edi, dword [esp + 0x238]
push edi
lea ecx, [esp + 0x14]
xor esi, esi
call fcn.00403bd0
push 0x103
lea eax, [esp + 0x21]
push esi
push eax
mov dword [esp + 0x23c], esi
mov byte [esp + 0x28], 0
call fcn.004075f0
add esp, 0xc
cmp edi, esi
je 0x4042b3
cmp byte [edi + 1], 0x3a
jne 0x4042b3
push 1
lea ecx, [esp + 0x18]
push ecx
lea ecx, [esp + 0x18]
call fcn.00401e00
mov eax, dword [eax]
push 0x417710
push eax
call fcn.00408364
add esp, 8
cmp eax, esi
mov eax, dword [esp + 0x14]
setne bl
add eax, 0xfffffff0
lea edx, [eax + 0xc]
or ecx, 0xffffffff
lock xadd dword [edx], ecx
dec ecx
test ecx, ecx
jg 0x404143
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
test bl, bl
je 0x404155
push 0x417710
lea ecx, [esp + 0x14]
call fcn.00402ec0
push 0xc
push str.KAVLEOS.Conf
lea ecx, [esp + 0x18]
call fcn.00401fe0
push 0x104
lea ecx, [esp + 0x20]
push ecx
call dword [sym.imp.KERNEL32.dll_GetSystemDirectoryA]
cmp eax, 3
jle 0x4042ae
mov dl, byte [edi]
cmp dl, byte [esp + 0x1c]
jne 0x4042ae
lea ecx, [esp + 0x14]
call fcn.00401000
push 0x103
lea eax, [esp + 0x125]
push esi
push eax
mov byte [esp + 0x23c], 1
mov byte [esp + 0x12c], 0
call fcn.004075f0
lea ecx, [esp + 0x28]
push ecx
lea edx, [esp + 0x130]
push 0x104
push edx
mov byte [esp + 0x37], 0
call fcn.004084e2
add esp, 0x18
cmp byte [esp + 0x1c], 0x61
jge 0x4041e1
add byte [esp + 0x1c], 0x20
push str.kav2005
lea eax, [esp + 0x20]
push 0x104
push eax
call fcn.00408547
push str.KAV2005
lea ecx, [esp + 0x130]
push 0x104
push ecx
call fcn.00408547
mov edx, dword [esp + 0x28]
add esp, 0x18
push edx
lea eax, [esp + 0x20]
push eax
push str.Path
push str.Install_Path
call dword [sym.imp.KERNEL32.dll_WritePrivateProfileStringA]
mov ecx, dword [esp + 0x10]
push 6
push ecx
call dword [sym.imp.KERNEL32.dll_SetFileAttributesA]
push esi
lea edx, [esp + 0x20]
push edx
call dword [sym.imp.KERNEL32.dll_CreateDirectoryA]
lea eax, [esp + 0x1c]
push eax
lea ecx, [esp + 0x124]
push ecx
call fcn.00401370
add esp, 8
push str.SOFTWAREkingsoftAntiVirus
push reloc.OLEAUT32.dll_SysReAllocString
lea ecx, [esp + 0x1c]
call fcn.00401010
push 0x417710
lea edx, [esp + 0x20]
push 0x104
push edx
call fcn.00408547
add esp, 0xc
lea eax, [esp + 0x1c]
push eax
push str.ProgramPath
lea ecx, [esp + 0x1c]
call fcn.004010b0
lea ecx, [esp + 0x14]
call fcn.00401050
lea ecx, [esp + 0x14]
mov byte [esp + 0x230], 0
call fcn.00401110
mov esi, 1
mov eax, dword [esp + 0x10]
add eax, 0xfffffff0
mov dword [esp + 0x230], 0xffffffff
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x4042de
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
mov eax, esi
mov ecx, dword [esp + 0x228]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov ecx, dword [esp + 0x214]
xor ecx, esp
call fcn.004075d4
add esp, 0x224
ret