Function at 0x401000
Capabilities:
Create thread
Get common file path
Read .ini file

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
sub esp, 0xe4
mov eax, dword [ebp + 8]
push ebx
push esi
push edi
mov dword [0x4046a4], eax
mov dword [0x41127c], eax
mov ecx, 0xa
xor eax, eax
lea edi, [esp + 0x14]
rep stosd dword es:[edi], eax
xor edi, edi
push edi
push str.WatchDog_I_MAY_Pro
call dword [sym.imp.USER32.dll_FindWindowW]
test eax, eax
je 0x401049
mov eax, 1
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 0x10
mov eax, dword [0x4046a4]
push 5
mov dword [esp + 0x18], edi
mov dword [esp + 0x1c], 0x4013c0
mov dword [esp + 0x20], edi
mov dword [esp + 0x24], 4
mov dword [esp + 0x28], eax
mov dword [esp + 0x2c], edi
mov dword [esp + 0x30], edi
call dword [sym.imp.GDI32.dll_GetStockObject]
lea ecx, [esp + 0x14]
mov dword [esp + 0x30], eax
push ecx
mov dword [esp + 0x38], edi
mov dword [esp + 0x3c], str.WatchDog_I_MAY_Pro
mov dword [esp + 0x18], edi
call dword [sym.imp.USER32.dll_RegisterClassW]
test ax, ax
jne 0x4010a9
xor eax, eax
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 0x10
mov esi, dword [sym.imp.KERNEL32.dll_GetPrivateProfileStringA]
push 0x404060
lea edx, [esp + 0x90]
push 0x64
push edx
push 0x41134c
push str.Partition
push str.Panorama
call esi
mov ebx, dword [sym.imp.MSVCRT.dll_atoi]
test eax, eax
je 0x401204
lea eax, [esp + 0x8c]
push eax
call ebx
add esp, 4
cmp eax, 0x14
jl 0x401130
mov dword [0x404048], 0xcc000000
mov dword [0x40404c], 0x42299c82
mov dword [0x404050], 0xb0000000
mov dword [0x404054], 0x421bf08e
mov dword [0x404058], 0x20000000
mov dword [0x40405c], 0x4222a05f
jmp 0x40127e
cmp eax, 0xf
jl 0x401176
mov dword [0x404048], 0xe8000000
mov dword [0x40404c], 0x42274876
mov dword [0x404050], 0xe8000000
mov dword [0x404054], 0x42174876
mov dword [0x404058], 0x3c000000
mov dword [0x40405c], 0x42204c53
jmp 0x40127e
cmp eax, 0xa
jl 0x4011bc
mov dword [0x404048], 0x20000000
mov dword [0x40404c], 0x4222a05f
mov dword [0x404050], 0x20000000
mov dword [0x404054], 0x4212a05f
mov dword [0x404058], 0xb0000000
mov dword [0x40405c], 0x421bf08e
jmp 0x40127e
cmp eax, 5
jl 0x4011ff
mov dword [0x404048], 0xb0000000
mov dword [0x40404c], 0x421bf08e
mov dword [0x404050], 0x20000000
mov dword [0x404054], 0x4202a05f
mov dword [0x404058], 0
mov dword [0x40405c], 0x420dcd65
jmp 0x40127e
cmp eax, 3
jl 0x401242
mov dword [0x404048], 0x20000000
mov dword [0x40404c], 0x4212a05f
mov dword [0x404050], 0
mov dword [0x404054], 0x41fdcd65
mov dword [0x404058], 0xc0000000
mov dword [0x40405c], 0x42065a0b
jmp 0x40127e
mov dword [0x404048], 0x20000000
mov dword [0x40404c], 0x4202a05f
mov dword [0x404050], 0xc0000000
mov dword [0x404054], 0x41e65a0b
mov dword [0x404058], 0xc0000000
mov dword [0x40405c], 0x41f65a0b
mov ecx, dword [0x4046a4]
push edi
push ecx
push edi
push edi
push edi
push edi
push 0x80000000
push 0x80000000
push edi
push edi
push str.WatchDog_I_MAY_Pro
push edi
call dword [sym.imp.USER32.dll_CreateWindowExW]
cmp eax, edi
mov dword [0x4044cc], eax
jne 0x4012b6
xor eax, eax
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 0x10
push 0x64
push 0x404640
call dword [sym.imp.KERNEL32.dll_GetWindowsDirectoryA]
push 0x404640
push 0x4045d8
call dword [sym.imp.KERNEL32.dll_lstrcpyA]
push 0x5c
push 0x4045d8
call dword [sym.imp.MSVCRT.dll_strchr]
add esp, 8
cmp eax, edi
je 0x4012eb
mov byte [eax + 1], 0
push 0x404088
lea edx, [esp + 0x5c]
push 0x32
push edx
push 0x404098
push str.SkipSystemDisk
push 0x4040ac
call esi
test eax, eax
jne 0x401314
mov dword [0x4044d0], edi
jmp 0x401323
lea eax, [esp + 0x58]
push eax
call ebx
add esp, 4
mov dword [0x4044d0], eax
mov ecx, dword [0x4044cc]
push edi
push ecx
call dword [sym.imp.USER32.dll_ShowWindow]
call fcn.00401590
mov esi, dword [sym.imp.MSVCRT.dll__beginthreadex]
lea edx, [esp + 0x10]
push edx
push edi
push edi
push 0x401ef0
push edi
push edi
call esi
mov dword [0x4046ac], eax
lea eax, [esp + 0x28]
push eax
push edi
push edi
push 0x4020d0
push edi
push edi
call esi
mov esi, dword [sym.imp.USER32.dll_GetMessageA]
add esp, 0x30
lea ecx, [esp + 0x3c]
mov dword [0x4046a8], eax
push edi
push edi
push edi
push ecx
call esi
test eax, eax
je 0x4013a8
mov edi, dword [sym.imp.USER32.dll_TranslateMessage]
mov ebx, dword [sym.imp.USER32.dll_DispatchMessageA]
lea edx, [esp + 0x3c]
push edx
call edi
lea eax, [esp + 0x3c]
push eax
call ebx
push 0
push 0
lea ecx, [esp + 0x44]
push 0
push ecx
call esi
test eax, eax
jne 0x401389
mov eax, dword [esp + 0x44]
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 0x10