Function at 0x401380
Capabilities:
Create thread
Get common file path
Get disk information
Hide graphical window

Disassembly:
sub esp, 0x84
push ebp
push esi
push str.KavPFW
push str.Windows
call dword [sym.imp.USER32.dll_FindWindowA]
test eax, eax
je 0x4013a7
pop esi
xor eax, eax
pop ebp
add esp, 0x84
ret
xor ebp, ebp
push ebp
call dword [sym.imp.KERNEL32.dll_GetModuleHandleA]
mov esi, dword [sym.imp.USER32.dll_LoadIconA]
push 0x7f00
push ebp
mov dword [esp + 0x30], eax
mov dword [esp + 0x44], 0x40b1ac
mov dword [esp + 0x24], 0x401610
mov dword [esp + 0x20], 8
mov dword [esp + 0x1c], 0x30
call esi
push 0x7f00
push ebp
mov dword [esp + 0x34], eax
call esi
push 0x7f00
push ebp
mov dword [esp + 0x48], eax
call dword [sym.imp.USER32.dll_LoadCursorA]
mov dword [esp + 0x30], eax
lea eax, [esp + 0x14]
push eax
mov dword [esp + 0x3c], ebp
mov dword [esp + 0x24], ebp
mov dword [esp + 0x28], ebp
mov dword [esp + 0x38], 5
call dword [sym.imp.USER32.dll_RegisterClassExA]
test ax, ax
jne 0x401431
pop esi
xor eax, eax
pop ebp
add esp, 0x84
ret
mov ecx, dword [esp + 0x28]
push ebx
push edi
push ebp
push ecx
push ebp
push ebp
push 0x46
push 0xa0
push 0x80000000
push 0x80000000
push 0xa0000
push str.KavPFW
push 0x40b1ac
push ebp
call dword [sym.imp.USER32.dll_CreateWindowExA]
mov esi, dword [sym.imp.USER32.dll_ShowWindow]
push 6
push eax
mov dword [0x40e004], eax
call esi
mov edx, dword [0x40e004]
push ebp
push edx
call esi
call dword [sym.imp.KERNEL32.dll_GetLogicalDrives]
mov ebx, eax
mov byte [esp + 0x12], 0
shr ebx, 2
je 0x40150b
mov ebp, dword [sym.imp.KERNEL32.dll_GetDriveTypeA]
mov byte [esp + 0x13], 0x43
test bl, 1
je 0x4014f9
mov al, byte [esp + 0x13]
lea ecx, [esp + 0x14]
push ecx
mov byte [esp + 0x18], al
mov byte [esp + 0x19], 0x3a
mov byte [esp + 0x1a], 0x5c
mov byte [esp + 0x1b], 0
call ebp
cmp eax, 3
jne 0x4014f9
mov dl, byte [esp + 0x12]
lea edi, [esp + 0x14]
movsx eax, dl
or ecx, 0xffffffff
lea esi, [esp + eax*4 + 0x68]
xor eax, eax
repne scasb al, byte es:[edi]
not ecx
sub edi, ecx
mov dword [esp + 0x18], esi
mov eax, ecx
mov esi, edi
mov edi, dword [esp + 0x18]
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, eax
and ecx, 3
inc dl
rep movsb byte es:[edi], byte [esi]
mov byte [esp + 0x12], dl
mov cl, byte [esp + 0x13]
shr ebx, 1
inc cl
test ebx, ebx
mov byte [esp + 0x13], cl
ja 0x401499
xor ebp, ebp
push 0x104
push 0x40dde4
call dword [sym.imp.KERNEL32.dll_GetSystemDirectoryA]
cmp byte [esp + 0x12], 1
jle 0x401557
mov cl, byte [0x40dde4]
mov al, byte [esp + 0x68]
cmp cl, al
jne 0x401536
lea edi, [esp + 0x6c]
jmp 0x40155b
lea edi, [esp + 0x68]
or ecx, 0xffffffff
xor eax, eax
repne scasb al, byte es:[edi]
not ecx
sub edi, ecx
mov eax, ecx
mov esi, edi
mov edi, 0x40b1a8
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, eax
jmp 0x401576
lea edi, [esp + 0x68]
or ecx, 0xffffffff
xor eax, eax
repne scasb al, byte es:[edi]
not ecx
sub edi, ecx
mov edx, ecx
mov esi, edi
mov edi, 0x40b1a8
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, edx
mov eax, dword [0x40e004]
and ecx, 3
cmp eax, ebp
rep movsb byte es:[edi], byte [esi]
je 0x40158d
push eax
call fcn.004010b0
add esp, 4
push ebp
push ebp
push ebp
push 0x4021f0
push ebp
push ebp
call dword [sym.imp.KERNEL32.dll_CreateThread]
mov dword [0x40dff0], eax
mov al, byte [0x40dff8]
mov esi, dword [sym.imp.USER32.dll_GetMessageA]
inc al
mov byte [0x40dff8], al
mov eax, dword [0x40e004]
push ebp
push ebp
lea ecx, [esp + 0x54]
push eax
push ecx
call esi
test eax, eax
je 0x4015f5
mov edi, dword [sym.imp.USER32.dll_TranslateMessage]
mov ebx, dword [sym.imp.USER32.dll_DispatchMessageA]
lea edx, [esp + 0x4c]
push edx
call edi
lea eax, [esp + 0x4c]
push eax
call ebx
mov ecx, dword [0x40e004]
push ebp
push ebp
lea edx, [esp + 0x54]
push ecx
push edx
call esi
test eax, eax
jne 0x4015d3
mov eax, dword [esp + 0x54]
pop edi
pop ebx
pop esi
pop ebp
add esp, 0x84
ret