Function at 0x401db0
Capabilities:
Check if file exists
Delete file
Get disk information
Print debug messages
Query or enumerate registry value
Read .ini file
Resolve function by parsing pe exports

Disassembly:
push 0xffffffffffffffff
push 0x421c32
mov eax, dword fs:[0]
push eax
sub esp, 0x478
mov eax, dword [0x42bb00]
xor eax, esp
mov dword [esp + 0x474], eax
push ebx
push ebp
push esi
push edi
mov eax, dword [0x42bb00]
xor eax, esp
push eax
lea eax, [esp + 0x48c]
mov dword fs:[0], eax
push 0x103
lea eax, [esp + 0x181]
mov esi, ecx
push 0
push eax
mov dword [esp + 0x44], esi
mov byte [esp + 0x188], 0
call fcn.004123a0
add esp, 0xc
push 0x104
lea ecx, [esp + 0x180]
push ecx
push 0
call dword [sym.imp.KERNEL32.dll_GetModuleFileNameA]
lea edx, [esp + 0x17c]
push edx
call dword [sym.imp.SHLWAPI.dll_PathRemoveFileSpecA]
lea eax, [esp + 0x17c]
push eax
lea ebp, [esi + 0xa4]
push 0x426ae8
push ebp
call fcn.00403980
mov ecx, dword [esi + 0x48]
add esp, 0xc
push ecx
lea ecx, [esp + 0x28]
call fcn.00402d10
mov dword [esp + 0x494], 0
mov edx, dword [esp + 0x24]
cmp dword [edx - 0xc], 0
jne 0x401e81
push str.Msg:_cmdLine_is_empty._n
call dword [sym.imp.KERNEL32.dll_OutputDebugStringA]
jmp 0x402841
call fcn.004042dd
xor ecx, ecx
test eax, eax
setne cl
test ecx, ecx
jne 0x401e9b
push 0x80004005
call fcn.00401090
mov edx, dword [eax]
mov ecx, eax
mov eax, dword [edx + 0xc]
call eax
add eax, 0x10
mov dword [esp + 0x14], eax
mov byte [esp + 0x494], 1
call fcn.004042dd
xor ecx, ecx
test eax, eax
setne cl
test ecx, ecx
jne 0x401ecd
push 0x80004005
call fcn.00401090
mov edx, dword [eax]
mov ecx, eax
mov eax, dword [edx + 0xc]
call eax
add eax, 0x10
mov dword [esp + 0x20], eax
push 0x20
mov bl, 2
mov byte [esp + 0x498], bl
mov ecx, dword [esp + 0x28]
push 0
push ecx
lea edx, [esp + 0x20]
push edx
call fcn.00404258
mov eax, dword [esp + 0x24]
push 0x20
push 1
push eax
lea ecx, [esp + 0x2c]
push ecx
call fcn.00404258
lea edi, [esp + 0x20]
call fcn.00402f90
mov edx, dword [esp + 0x14]
push 0x426b04
push edx
call fcn.00410182
add esp, 8
test eax, eax
jne 0x401faa
call fcn.004042dd
xor ecx, ecx
test eax, eax
setne cl
test ecx, ecx
jne 0x401f45
push 0x80004005
call fcn.00401090
mov edx, dword [eax]
mov ecx, eax
mov eax, dword [edx + 0xc]
call eax
add eax, 0x10
mov dword [esp + 0x2c], eax
lea ecx, [esp + 0x2c]
push str._install_CDE_t
push ecx
mov byte [esp + 0x49c], 3
call fcn.00403980
mov esi, dword [esp + 0x34]
mov edi, dword [sym.imp.USER32.dll_MessageBoxA]
add esp, 8
push 0
push 0x426bb0
push esi
push 0
call edi
lea eax, [esi - 0x10]
mov byte [esp + 0x494], bl
lea edx, [eax + 0xc]
or ecx, 0xffffffff
lock xadd dword [edx], ecx
dec ecx
test ecx, ecx
jg 0x401fb0
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
jmp 0x401fb0
mov edi, dword [sym.imp.USER32.dll_MessageBoxA]
mov ecx, dword [esp + 0x14]
push 0x426bb8
push ecx
call fcn.00410182
add esp, 8
test eax, eax
je 0x4027c4
mov edx, dword [esp + 0x14]
push 0x426bc4
push edx
call fcn.00410182
add esp, 8
test eax, eax
je 0x4027c4
mov eax, dword [esp + 0x14]
push 0x426bcc
push eax
call fcn.00410282
add esp, 8
test eax, eax
je 0x4027c4
mov ecx, dword [esp + 0x14]
push str._install
push ecx
call fcn.00410282
add esp, 8
test eax, eax
je 0x4027c4
mov edx, dword [esp + 0x14]
push str._Prot
push edx
call fcn.00410282
add esp, 8
test eax, eax
je 0x4027c4
mov eax, dword [esp + 0x14]
push str._instProt
push eax
call fcn.00410282
add esp, 8
test eax, eax
je 0x4027c4
lea ecx, [esp + 0x14]
push ecx
mov ecx, 0x426bf8
call fcn.00402e30
test eax, eax
je 0x4027a5
lea edx, [esp + 0x14]
push edx
mov ecx, str._uninstall
call fcn.00402e30
test eax, eax
je 0x4027a5
lea eax, [esp + 0x14]
push eax
mov ecx, 0x426c10
call fcn.00402e30
test eax, eax
je 0x4020a0
lea ecx, [esp + 0x14]
push ecx
mov ecx, str._installArp
call fcn.00402e30
test eax, eax
jne 0x4020e4
mov esi, 5
call fcn.00401c40
test eax, eax
je 0x4020b0
call eax
mov esi, 7
call fcn.00401c40
test eax, eax
je 0x4020d4
call eax
test eax, eax
je 0x4020d4
push 0
push 0x42698c
push 0x426c28
push 0
call edi
mov esi, 6
call fcn.00401c40
test eax, eax
je 0x4020e4
call eax
lea edx, [esp + 0x14]
push edx
mov ecx, 0x426c3c
call fcn.00402e30
test eax, eax
je 0x40210a
lea eax, [esp + 0x14]
push eax
mov ecx, str._uninstallArp
call fcn.00402e30
test eax, eax
jne 0x40212e
mov esi, 8
call fcn.00401c40
test eax, eax
je 0x40212e
call eax
test eax, eax
je 0x40212e
push 0
push 0x42698c
push 0x426c5c
push 0
call edi
lea ecx, [esp + 0x14]
push ecx
mov ecx, str._SetChkdsk
call fcn.00402e30
test eax, eax
jne 0x4023d2
lea ecx, [esp + 0x3c]
call fcn.004012e0
push str.Chkdsk.ini
lea edx, [esp + 0x1c]
push ebp
push edx
mov byte [esp + 0x4a0], 6
call fcn.00403020
add esp, 0xc
mov byte [esp + 0x494], 7
mov eax, dword [esp + 0x18]
cmp dword [eax - 0xc], 0
jge 0x402185
push 0x80070057
call fcn.00401090
mov bl, byte [eax]
lea esi, [esp + 0x3c]
call fcn.004019e0
test al, al
je 0x4021a8
lea eax, [esp + 0x18]
push eax
call fcn.00402e60
lea ecx, [esp + 0x18]
push ecx
call fcn.00402ee0
mov edx, dword [esp + 0x18]
mov ebx, dword [sym.imp.KERNEL32.dll_WritePrivateProfileStringA]
push edx
push 0x426c94
push str.ChkDskOn
push str.Config
call ebx
test eax, eax
jne 0x40223b
lea ecx, [esp + 0x1c]
call fcn.00402ce0
mov byte [esp + 0x494], 8
mov eax, dword [esp + 0x18]
push eax
lea ecx, [esp + 0x20]
push 0x426cac
push ecx
call fcn.00403980
mov edx, dword [esp + 0x28]
add esp, 0xc
push 0
push 0x42698c
push edx
push 0
call edi
lea ecx, [esp + 0x1c]
call fcn.00402dd0
lea ecx, [esp + 0x18]
call fcn.00402dd0
lea esi, [esp + 0x3c]
call fcn.00401500
lea ecx, [esp + 0x20]
call fcn.00402dd0
lea ecx, [esp + 0x14]
call fcn.00402dd0
lea ecx, [esp + 0x24]
call fcn.00402dd0
jmp 0x40286c
mov eax, dword [esp + 0x18]
mov ecx, dword [esp + 0x20]
push eax
push ecx
push str.ChkList
push str.Config
call ebx
test eax, eax
jne 0x4022c8
lea ecx, [esp + 0x1c]
call fcn.00402ce0
mov byte [esp + 0x494], 9
mov edx, dword [esp + 0x20]
push edx
lea eax, [esp + 0x20]
push 0x426ccc
push eax
call fcn.00403980
mov ecx, dword [esp + 0x28]
add esp, 0xc
push 0
push 0x42698c
push ecx
push 0
call edi
lea ecx, [esp + 0x1c]
call fcn.00402dd0
lea ecx, [esp + 0x18]
call fcn.00402dd0
lea esi, [esp + 0x3c]
call fcn.00401500
lea ecx, [esp + 0x20]
call fcn.00402dd0
lea ecx, [esp + 0x14]
call fcn.00402dd0
lea ecx, [esp + 0x24]
call fcn.00402dd0
jmp 0x40286c
lea edi, [esp + 0x28]
lea esi, [esp + 0x3c]
call fcn.004018f0
mov byte [esp + 0x494], 0xa
mov edx, dword [esp + 0x18]
mov eax, dword [esp + 0x28]
push edx
push eax
push str.ProtList
push str.Config
call ebx
test eax, eax
jne 0x402343
lea ecx, [esp + 0x1c]
call fcn.00402ce0
mov byte [esp + 0x494], 0xb
mov ecx, dword [esp + 0x28]
push ecx
lea edx, [esp + 0x20]
push 0x426cfc
push edx
call fcn.00403980
mov eax, dword [esp + 0x28]
add esp, 0xc
push 0
push 0x42698c
push eax
push 0
call dword [sym.imp.USER32.dll_MessageBoxA]
lea ecx, [esp + 0x1c]
call fcn.00402dd0
mov ecx, edi
jmp 0x402204
push str.I8Desk
lea ecx, [esp + 0x30]
call fcn.00402d10
mov bl, 0xc
mov byte [esp + 0x494], bl
mov eax, dword [esp + 0x18]
cmp dword [eax - 0xc], 0
jge 0x40236e
push 0x80070057
call fcn.00401090
mov cl, byte [eax]
mov byte [esp + 0x1c], cl
mov edx, dword [esp + 0x1c]
push edx
lea eax, [esp + 0x20]
push eax
lea edi, [esp + 0x34]
call fcn.004031e0
add esp, 8
mov byte [esp + 0x494], 0xd
mov eax, dword [eax]
push str.ST3F95Xfhu9rBqBh
push eax
call dword [esp + 0x70]
lea ecx, [esp + 0x1c]
mov byte [esp + 0x494], bl
call fcn.00402dd0
mov ecx, dword [esp + 0x28]
push ecx
lea edx, [esp + 0x40]
push edx
call fcn.00401aa0
call fcn.00401bd0
mov ecx, edi
call fcn.00402dd0
lea ecx, [esp + 0x28]
jmp 0x402204
lea eax, [esp + 0x14]
push eax
mov ecx, str._CHKDSK
call fcn.00402e30
test eax, eax
jne 0x40221b
push str.Chkdsk.ini
lea ecx, [esp + 0x1c]
push ebp
push ecx
call fcn.00403020
add esp, 0xc
mov byte [esp + 0x494], 0xe
mov edx, dword [esp + 0x18]
push edx
call dword [sym.imp.SHLWAPI.dll_PathFileExistsA]
test eax, eax
jne 0x40246b
lea eax, [esp + 0x18]
push eax
lea ecx, [esp + 0x34]
push str.Msg:_file_not_exist_
push ecx
call fcn.00403100
push 0x426d24
push eax
lea edx, [esp + 0x30]
push edx
mov byte [esp + 0x4ac], 0xf
call fcn.00403020
mov eax, dword [eax]
add esp, 0x18
push eax
call dword [sym.imp.KERNEL32.dll_OutputDebugStringA]
lea ecx, [esp + 0x1c]
call fcn.00402dd0
lea ecx, [esp + 0x30]
call fcn.00402dd0
lea ecx, [esp + 0x18]
call fcn.00402dd0
jmp 0x40221b
mov ecx, dword [esp + 0x18]
push ecx
push 0
push str.ChkdskOn
push str.Config
call dword [sym.imp.KERNEL32.dll_GetPrivateProfileIntA]
cmp eax, 1
je 0x4024a0
push str.Msg:_ChkdskOn0._n
call dword [sym.imp.KERNEL32.dll_OutputDebugStringA]
lea ecx, [esp + 0x18]
call fcn.00402dd0
jmp 0x40221b
lea ecx, [esp + 0x3c]
call fcn.004012e0
lea edi, [esp + 0x28]
lea esi, [esp + 0x3c]
mov byte [esp + 0x494], 0x10
call fcn.004018f0
mov byte [esp + 0x494], 0x11
mov edx, dword [esp + 0x28]
cmp dword [edx - 0xc], 0
je 0x402538
mov eax, edi
push eax
lea ecx, [esp + 0x20]
push str.Msg:_Port_list_not_empty_
push ecx
call fcn.00403100
push 0x426d24
push eax
lea edx, [esp + 0x44]
push edx
mov byte [esp + 0x4ac], 0x12
call fcn.00403020
mov eax, dword [eax]
add esp, 0x18
push eax
call dword [sym.imp.KERNEL32.dll_OutputDebugStringA]
lea ecx, [esp + 0x30]
call fcn.00402dd0
lea ecx, [esp + 0x1c]
call fcn.00402dd0
lea ecx, [esp + 0x28]
call fcn.00402dd0
lea esi, [esp + 0x3c]
call fcn.00401500
lea ecx, [esp + 0x18]
call fcn.00402dd0
jmp 0x40221b
mov ecx, dword [esp + 0x20]
cmp dword [ecx - 0xc], 0
mov ebp, dword [sym.imp.KERNEL32.dll_GetPrivateProfileStringA]
jne 0x40259b
push 0x103
lea edx, [esp + 0x7d]
push 0
push edx
mov byte [esp + 0x84], 0
call fcn.004123a0
mov eax, dword [esp + 0x24]
add esp, 0xc
push eax
push 0x104
lea ecx, [esp + 0x80]
push ecx
push 0
push str.ChkList
push str.Config
call ebp
lea edx, [esp + 0x78]
push edx
lea eax, [esp + 0x24]
push 0x426ae8
push eax
call fcn.00403980
add esp, 0xc
mov ecx, dword [esp + 0x20]
cmp dword [ecx - 0xc], 0
jne 0x402698
push 0x103
lea edx, [esp + 0x285]
push 0
push edx
mov byte [esp + 0x28c], 0
call fcn.004123a0
add esp, 0xc
lea eax, [esp + 0x280]
push eax
push 0x104
call dword [sym.imp.KERNEL32.dll_GetLogicalDriveStringsA]
mov ebx, eax
xor esi, esi
test ebx, ebx
jle 0x40262b
movzx eax, byte [esp + esi + 0x280]
cmp al, 0x42
jle 0x402626
cmp al, 0x5b
jge 0x402626
push eax
lea ecx, [esp + 0x34]
push ecx
lea edi, [esp + 0x28]
call fcn.004031e0
add esp, 8
push eax
mov ecx, edi
mov byte [esp + 0x498], 0x13
call fcn.004035a0
lea ecx, [esp + 0x30]
mov byte [esp + 0x494], 0x11
call fcn.00402dd0
inc esi
cmp esi, ebx
jl 0x4025e3
push 0x103
lea edx, [esp + 0x7d]
push 0
push edx
mov dword [esp + 0x40], 1
mov byte [esp + 0x84], 0
call fcn.004123a0
add esp, 0xc
lea eax, [esp + 0x1c]
push eax
lea ecx, [esp + 0x7c]
push ecx
lea edx, [esp + 0x3c]
push edx
push str.vpartition
push str.SOFTWAREGoyooi8desk
push reloc.OLEAUT32.dll_SysReAllocString
mov dword [esp + 0x34], 0x104
call dword [sym.imp.SHLWAPI.dll_SHGetValueA]
test eax, eax
jne 0x402698
lea eax, [esp + 0x78]
push eax
lea eax, [esp + 0x24]
call fcn.00403330
mov edi, eax
lea eax, [esp + 0x78]
call fcn.00403390
push ecx
lea edx, [esp + 0x24]
mov ecx, esp
mov dword [esp + 0x38], esp
push edx
call fcn.00403580
mov ecx, dword [esp + 0x3c]
call fcn.004028a0
mov eax, dword [esp + 0x18]
push eax
push 0x426da0
push str.ChkDskOn
push str.Config
call dword [sym.imp.KERNEL32.dll_WritePrivateProfileStringA]
test eax, eax
jne 0x40271d
lea ecx, [esp + 0x1c]
call fcn.00402ce0
mov byte [esp + 0x494], 0x14
mov ecx, dword [esp + 0x18]
push ecx
lea edx, [esp + 0x20]
push str.Msg:
push edx
call fcn.00403980
mov eax, dword [esp + 0x28]
add esp, 0xc
push 0
push 0x42698c
push eax
push 0
call dword [sym.imp.USER32.dll_MessageBoxA]
lea ecx, [esp + 0x1c]
mov byte [esp + 0x494], 0x11
call fcn.00402dd0
push 0x103
lea ecx, [esp + 0x389]
push 0
push ecx
mov byte [esp + 0x390], 0
call fcn.004123a0
mov edx, dword [esp + 0x24]
add esp, 0xc
push edx
push 0x104
lea eax, [esp + 0x38c]
push eax
push 0
push str.ProtList
push str.Config
call ebp
lea ecx, [esp + 0x384]
push ecx
lea ecx, [esp + 0x30]
call fcn.00402d10
lea edi, [esp + 0x2c]
mov byte [esp + 0x494], 0x15
call fcn.00402f90
mov edi, dword [esp + 0x2c]
cmp dword [edi - 0xc], 0
je 0x402791
lea ecx, [esp + 0x3c]
call fcn.00401640
mov edx, dword [esp + 0x18]
push edx
call dword [sym.imp.KERNEL32.dll_DeleteFileA]
lea ecx, [esp + 0x2c]
jmp 0x402513
lea ecx, [esp + 0x3c]
call fcn.004012e0
lea ecx, [esp + 0x3c]
mov byte [esp + 0x494], 5
call fcn.004017b0
jmp 0x402212
lea ecx, [esp + 0x3c]
call fcn.004012e0
mov byte [esp + 0x494], 4
mov edi, dword [esp + 0x20]
lea ecx, [esp + 0x3c]
call fcn.00401640
mov eax, dword [esp + 0x3c]
test eax, eax
je 0x4027f1
push eax
call dword [sym.imp.KERNEL32.dll_FreeLibrary]
mov byte [esp + 0x494], 1
mov eax, dword [esp + 0x20]
add eax, 0xfffffff0
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x402819
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
mov byte [esp + 0x494], 0
mov eax, dword [esp + 0x14]
add eax, 0xfffffff0
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x402841
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
mov dword [esp + 0x494], 0xffffffff
mov eax, dword [esp + 0x24]
add eax, 0xfffffff0
or edx, 0xffffffff
lea ecx, [eax + 0xc]
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x40286c
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
xor eax, eax
mov ecx, dword [esp + 0x48c]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebp
pop ebx
mov ecx, dword [esp + 0x474]
xor ecx, esp
call fcn.0040fe69
add esp, 0x484
ret