Function at 0x4038ca
Capabilities:
Get common file path
Get disk information
Get program files directory

Disassembly:
push 0x228
mov eax, 0x469578
call fcn.0043eb14
mov eax, dword [ebp + 8]
mov edi, 0x481bd4
mov ecx, edi
lea esi, [ebp - 0x228]
mov dword [ebp - 0x22c], eax
call fcn.0040189d
xor ebx, ebx
mov ecx, edi
lea esi, [ebp - 0x224]
mov dword [ebp - 4], ebx
call fcn.0040189d
push 0x206
lea eax, [ebp - 0x216]
push ebx
mov byte [ebp - 4], 1
push eax
mov word [ebp - 0x218], bx
call fcn.00437c90
add esp, 0xc
lea eax, [ebp - 0x218]
push eax
push ebx
push ebx
push 0x26
push ebx
call dword [sym.imp.SHELL32.dll_SHGetFolderPathW]
lea eax, [ebp - 0x218]
push eax
mov eax, esi
push eax
call fcn.00401ef0
push 0x5c
xor ecx, ecx
call fcn.004043c8
inc eax
push eax
lea eax, [ebp - 0x21c]
push eax
mov ecx, esi
call fcn.00404410
lea ecx, [ebp - 0x220]
push str.kingsoftkingsoft_antivirus
push ecx
mov ecx, eax
mov byte [ebp - 4], 2
call fcn.004016d7
pop ecx
pop ecx
mov edi, esi
mov byte [ebp - 4], 3
call fcn.004018d4
mov eax, dword [ebp - 0x220]
add eax, 0xfffffff0
call fcn.004023f7
mov byte [ebp - 4], 1
mov eax, dword [ebp - 0x21c]
add eax, 0xfffffff0
call fcn.004023f7
mov esi, dword [sym.imp.KERNEL32.dll_GetLogicalDriveStringsW]
push ebx
push ebx
call esi
xor ecx, ecx
push 2
pop edx
mov edi, eax
mul edx
seto cl
neg ecx
or ecx, eax
push ecx
call fcn.00436e9c
pop ecx
push edi
push ebx
mov dword [ebp - 0x21c], eax
push eax
call fcn.00437c90
add esp, 0xc
push dword [ebp - 0x21c]
push edi
call esi
mov esi, dword [ebp - 0x21c]
dec edi
cmp edi, ebx
mov dword [ebp - 0x220], ebx
jbe 0x403a53
cmp word [esi], bx
je 0x403a53
push esi
lea eax, [ebp - 0x228]
push eax
call fcn.00401ef0
mov eax, dword [ebp - 0x224]
push dword [eax - 0xc]
push eax
lea eax, [ebp - 0x228]
call fcn.00403731
lea eax, [ebp - 0x228]
push eax
mov eax, dword [ebp - 0x22c]
call fcn.00404539
push esi
call fcn.00437547
pop ecx
mov ecx, dword [ebp - 0x220]
lea eax, [ecx + eax + 1]
push esi
mov dword [ebp - 0x220], eax
call fcn.00437547
cmp dword [ebp - 0x220], edi
pop ecx
lea esi, [esi + eax*2 + 2]
jb 0x4039f0
push dword [ebp - 0x21c]
call fcn.00437d0a
mov eax, dword [ebp - 0x22c]
pop ecx
call fcn.0040450f
cmp eax, ebx
mov dword [ebp - 0x234], eax
mov dword [ebp - 0x220], ebx
jbe 0x403b32
mov esi, dword [ebp - 0x220]
mov edi, dword [ebp - 0x22c]
call fcn.00404522
mov eax, dword [eax]
sub eax, 0x10
call fcn.00401c46
add eax, 0x10
mov dword [ebp - 0x21c], eax
push 0x5c
pop ebx
push ebx
lea esi, [ebp - 0x21c]
mov byte [ebp - 4], 4
call fcn.004043f2
push ebx
xor ecx, ecx
mov dword [ebp - 0x230], eax
call fcn.004043c8
mov edi, eax
cmp edi, dword [ebp - 0x230]
jae 0x403b08
lea ecx, [edi + 1]
push ebx
lea esi, [ebp - 0x21c]
call fcn.004043c8
sub eax, edi
push edi
mov ecx, esi
call fcn.00404350
mov eax, esi
push eax
mov eax, dword [ebp - 0x22c]
call fcn.00404539
push ebx
xor ecx, ecx
call fcn.004043c8
push ebx
mov edi, eax
call fcn.004043f2
cmp edi, eax
jb 0x403acd
mov byte [ebp - 4], 1
mov eax, dword [ebp - 0x21c]
add eax, 0xfffffff0
call fcn.004023f7
inc dword [ebp - 0x220]
mov eax, dword [ebp - 0x220]
cmp eax, dword [ebp - 0x234]
jb 0x403a7e
mov eax, dword [ebp - 0x224]
add eax, 0xfffffff0
call fcn.004023f7
mov eax, dword [ebp - 0x228]
add eax, 0xfffffff0
call fcn.004023f7
xor eax, eax
inc eax
call fcn.0043eb97
ret