Function at 0x402cc0
Capabilities:
Delete file
Read .ini file

Disassembly:
sub esp, 0x1f4
push ebx
push ebp
push esi
push edi
push 0
mov dword [esp + 0x14], 0xffffffff
call fcn.00409523
push eax
call fcn.0040af04
add esp, 8
mov ecx, 0x41c188
call fcn.00406ff0
push str.__cd_load_status
push 0x40
push 0
push 4
push 0
push 0xffffffffffffffff
call dword [sym.imp.KERNEL32.DLL_CreateFileMappingA]
test eax, eax
mov esi, dword [sym.imp.KERNEL32.DLL_GetLastError]
mov dword [0x419f68], eax
je 0x402d63
cmp eax, 0xffffffff
je 0x402d63
call esi
cmp eax, 0xb7
mov eax, dword [0x419f68]
je 0x402d63
push 0
push 0x40
push 0
push 0
push 0xf001f
push eax
call dword [sym.imp.KERNEL32.DLL_MapViewOfFileEx]
test eax, eax
je 0x402d57
mov edx, dword [str.unloaded]
mov ecx, eax
mov dword [ecx], edx
mov edx, dword [0x4140d8]
mov dword [ecx + 4], edx
mov dl, byte [0x4140dc]
mov byte [ecx + 8], dl
push eax
call dword [sym.imp.KERNEL32.DLL_UnmapViewOfFile]
mov eax, dword [0x419f68]
push 0
push 0x40
push 0
push 0
push 4
push eax
call dword [sym.imp.KERNEL32.DLL_MapViewOfFileEx]
push 0x41a10c
push 0x4180b4
push 0x21
push 4
push str._d._d_s_s
push 0x41a08c
mov dword [0x41a0c0], eax
call fcn.00409d6c
add esp, 0x18
push str.__cd_load_wait
push 0
push 1
push 0
call dword [sym.imp.KERNEL32.DLL_CreateEventA]
mov dword [0x41a0fc], eax
call esi
cmp eax, 0xb7
jne 0x402dcf
mov eax, dword [0x41a0fc]
push eax
call dword [sym.imp.KERNEL32.DLL_SetEvent]
push 0x1f4
call dword [sym.imp.KERNEL32.DLL_Sleep]
mov ecx, dword [0x41a0fc]
push ecx
call dword [sym.imp.KERNEL32.DLL_ResetEvent]
push 0x41a0c8
call dword [sym.imp.KERNEL32.DLL_InitializeCriticalSection]
call fcn.004071e0
lea edx, [esp + 0x100]
mov cl, byte [eax]
inc eax
mov byte [edx], cl
inc edx
test cl, cl
jne 0x402df3
lea edi, [esp + 0x100]
dec edi
mov al, byte [edi + 1]
inc edi
test al, al
jne 0x402e05
mov edx, dword [str.cdeath.log]
mov eax, dword [0x4140b0]
mov cx, word [0x4140b4]
push 0
push 0x20
push 2
mov dword [edi], edx
mov dl, byte [0x4140b6]
push 0
mov dword [edi + 4], eax
push 3
push 0x40000000
lea eax, [esp + 0x118]
mov word [edi + 8], cx
push eax
mov byte [edi + 0xa], dl
call dword [sym.imp.KERNEL32.DLL_CreateFileA]
push 0x41a10c
push 0x4180b4
push 0x21
push 4
push str.Cheating_Death_GUI_v_d._d_s_s_Loaded
mov dword [0x41a100], eax
call fcn.00402530
xor eax, eax
mov ecx, 0x25
lea edi, [esp + 0x80]
rep stosd dword es:[edi], eax
add esp, 0x14
lea ecx, [esp + 0x6c]
push ecx
mov dword [esp + 0x70], 0x94
call dword [sym.imp.KERNEL32.DLL_GetVersionExA]
mov eax, dword [esp + 0x7c]
mov ecx, dword [esp + 0x78]
push 0x414080
lea edx, [esp + 0x84]
push edx
mov edx, dword [esp + 0x7c]
push eax
mov eax, dword [esp + 0x7c]
push ecx
push edx
push eax
push str.SystemInfo:___x:_x:_x:_x:_s___s_
call fcn.00402530
mov eax, dword [esp + 0x98]
add esp, 0x1c
cmp eax, 2
jne 0x402ed9
cmp dword [esp + 0x70], 4
jne 0x402ed9
mov byte [0x41a0f0], 1
call fcn.004071e0
lea edx, [esp + 0x100]
mov cl, byte [eax]
inc eax
mov byte [edx], cl
inc edx
test cl, cl
jne 0x402ee5
lea edi, [esp + 0x100]
dec edi
mov al, byte [edi + 1]
inc edi
test al, al
jne 0x402ef7
mov ecx, dword [str.tmpupdate.tmp]
mov edx, dword [0x414050]
mov eax, dword [0x414054]
mov esi, dword [sym.imp.KERNEL32.DLL_DeleteFileA]
mov dword [edi], ecx
mov cx, word [0x414058]
mov dword [edi + 4], edx
mov dl, byte [0x41405a]
mov dword [edi + 8], eax
lea eax, [esp + 0x100]
mov word [edi + 0xc], cx
push eax
mov byte [edi + 0xe], dl
call esi
call fcn.004071e0
lea edx, [esp + 0x100]
mov cl, byte [eax]
inc eax
mov byte [edx], cl
inc edx
test cl, cl
jne 0x402f48
lea edi, [esp + 0x100]
dec edi
lea ebx, [ebx]
mov al, byte [edi + 1]
inc edi
test al, al
jne 0x402f60
mov ecx, dword [str.autoupdate.exe]
mov edx, dword [0x413928]
mov eax, dword [0x41392c]
mov dword [edi], ecx
mov cx, word [0x413930]
mov dword [edi + 4], edx
mov dl, byte [0x413932]
mov dword [edi + 8], eax
lea eax, [esp + 0x100]
mov word [edi + 0xc], cx
push eax
mov byte [edi + 0xe], dl
call esi
mov ebx, dword [esp + 0x208]
mov ecx, dword [esp + 0x210]
push 0x104
push 0x419f70
push ebx
mov dword [0x41a088], ebx
mov dword [0x41a084], ecx
call dword [sym.imp.KERNEL32.DLL_GetModuleFileNameA]
mov eax, 0x419f70
lea edx, [eax + 1]
mov cl, byte [eax]
inc eax
test cl, cl
jne 0x402fd2
sub eax, edx
mov edi, 0x419f70
mov byte [eax + 0x419f6d], cl
dec edi
mov al, byte [edi + 1]
inc edi
test al, al
jne 0x402fe7
mov edx, dword [0x414048]
mov esi, dword [sym.imp.KERNEL32.DLL_GetPrivateProfileIntA]
push 0x419f70
push 1
push str.Auto
push str.General
mov dword [edi], edx
call esi
push 0x419f70
push 0
mov dword [0x41a0ac], eax
call fcn.00409523
add esp, 4
add eax, 0x15180
push eax
push str.NextCheck
push str.General
call esi
push 0x419f70
push 0
push str.Tray
push str.General
mov dword [0x41a0e4], eax
call esi
push 0x419f70
push 0
push str.HighMonitorThreadPriority
push str.General
mov dword [0x41a07c], eax
call esi
push 0x419f70
push 0
push str.DisableParanoidVacCheck
push str.General
mov dword [0x41a078], eax
call esi
push 0x419f70
push 0
push str.SilentAutoUpdate
push str.General
mov dword [0x41a0e8], eax
call esi
push 0x419f70
push 0
push str.AgreeOnUse
push str.General
mov dword [0x41a080], eax
call esi
push 0x419f70
push 0xffffffffffffffff
push str.XPos
push str.General
mov dword [0x41a0f4], eax
call esi
push 0x419f70
push 0xffffffffffffffff
push str.YPos
push str.General
mov dword [0x41a0c4], eax
call esi
mov ecx, dword [0x41a078]
mov edx, dword [0x41a07c]
push eax
mov dword [0x41a0e0], eax
mov eax, dword [0x41a0c4]
push eax
mov eax, dword [0x41a0e4]
push ecx
mov ecx, dword [0x41a0ac]
push edx
push eax
push ecx
push str.Loaded_INI_file___d:_d:_d:_d:_d:_d_
call fcn.00402530
mov ecx, dword [str.CDeathWndClass]
mov al, byte [ecx]
add esp, 0x1c
test al, al
mov ebp, 1
mov esi, 0x418060
je 0x403152
mov eax, ecx
lea edi, [eax + 1]
lea ecx, [ecx]
mov dl, byte [eax]
inc eax
test dl, dl
jne 0x403130
sub eax, edi
push eax
push ecx
push ebp
call fcn.00401080
mov ecx, dword [esi + 4]
add esi, 4
mov ebp, eax
mov al, byte [ecx]
add esp, 0xc
test al, al
jne 0x403128
mov esi, dword [0x41a084]
mov edi, str._nosecuredetect
mov ecx, 0x10
xor edx, edx
repe cmpsb byte [esi], byte es:[edi]
jne 0x4031c2
mov edx, dword [0x41a084]
push str.__cd_nosecuredetect
push 4
push 0
push 4
push 0
add edx, 0xf
push 0xffffffffffffffff
mov dword [0x41a084], edx
call dword [sym.imp.KERNEL32.DLL_CreateFileMappingA]
mov edi, eax
test edi, edi
mov dword [esp + 0x10], edi
je 0x4031c6
cmp edi, 0xffffffff
je 0x4031c6
push 0
push 4
push 0
push 0
push 0xf001f
push edi
call dword [sym.imp.KERNEL32.DLL_MapViewOfFileEx]
test eax, eax
je 0x4031b9
mov dword [eax], 0x11223344
push eax
call dword [sym.imp.KERNEL32.DLL_UnmapViewOfFile]
jmp 0x4031c6
mov edi, dword [esp + 0x10]
mov eax, dword [0x41a104]
xor esi, esi
push esi
push eax
call dword [sym.imp.USER32.dll_FindWindowA]
cmp eax, esi
mov dword [0x41a0ec], eax
jne 0x40355e
mov ecx, dword [0x41a104]
push ecx
push ebx
mov dword [esp + 0x4c], esi
mov dword [esp + 0x50], 0x4029e0
mov dword [esp + 0x54], esi
mov dword [esp + 0x58], esi
mov dword [esp + 0x5c], ebx
call dword [sym.imp.USER32.dll_LoadIconA]
push 0x7f00
push esi
mov dword [esp + 0x60], eax
call dword [sym.imp.USER32.dll_LoadCursorA]
mov edx, dword [0x41a104]
mov dword [esp + 0x5c], eax
lea eax, [esp + 0x44]
push eax
mov dword [esp + 0x64], 0x10
mov dword [esp + 0x68], esi
mov dword [esp + 0x6c], edx
call dword [sym.imp.USER32.dll_RegisterClassA]
test ax, ax
jne 0x40326a
mov ecx, dword [str.System_Error]
mov edx, dword [str.Could_not_register_CDeath_window_class.]
push 0x30
push ecx
xor ecx, ecx
call fcn.004093f0
pop edi
pop esi
pop ebp
mov eax, 1
pop ebx
add esp, 0x1f4
ret 0x10
cmp ebp, 0xe3d8dad5
je 0x40328d
mov edx, dword [str.System_Error]
push 0x30
push edx
mov edx, dword [str.This_version_of_cdeath.exe_has_been_hacked.]
xor ecx, ecx
call fcn.004093f0
jmp 0x4034c2
mov eax, dword [str.C_D_v_d._d_s_s]
push 0x41a10c
push 0x4180b4
push 0x21
push 4
push eax
lea ecx, [esp + 0x114]
push ecx
call fcn.00409d6c
mov edx, dword [0x41a0e0]
mov eax, dword [0x41a0c4]
add esp, 0x18
push esi
push ebx
push esi
push esi
push 0xe1
push 0xe1
push edx
mov edx, dword [0x41a104]
push eax
push 0xca0000
lea ecx, [esp + 0x124]
push ecx
push edx
push esi
call dword [sym.imp.USER32.dll_CreateWindowExA]
cmp dword [0x41a0f4], esi
mov dword [0x41a0ec], eax
jne 0x40330c
mov ecx, eax
call fcn.00403f50
cmp dword [0x41a0f4], esi
je 0x4034c2
mov eax, dword [0x41a0ec]
mov ecx, eax
call fcn.004039e0
mov edi, dword [sym.imp.USER32.dll_GetClientRect]
lea ecx, [esp + 0x18]
push ecx
push eax
mov dword [0x41a074], eax
call edi
mov edx, dword [esp + 0x20]
mov esi, dword [sym.imp.USER32.dll_GetSystemMetrics]
mov ebp, dword [esp + 0x24]
push 6
mov dword [esp + 0x18], edx
call esi
push 4
mov ebx, eax
call esi
add eax, ebp
push 5
add ebx, eax
call esi
push 5
mov ebp, eax
call esi
mov esi, dword [esp + 0x14]
push 6
add eax, esi
mov esi, dword [sym.imp.USER32.dll_SetWindowPos]
push ebx
add eax, ebp
push eax
mov eax, dword [0x41a0ec]
push 0
push 0
push 0
push eax
call esi
mov edx, dword [0x41a0ec]
lea ecx, [esp + 0x18]
push ecx
push edx
call edi
mov eax, dword [esp + 0x24]
mov ecx, dword [esp + 0x20]
mov edx, dword [0x41a074]
push 4
push eax
push ecx
push 0
push 0
push 0
push edx
call esi
cmp dword [0x41a0c4], 0xffffffff
mov ecx, dword [0x41a0ec]
jne 0x4033af
call fcn.004092a0
jmp 0x4033b4
call fcn.004091b0
mov eax, dword [0x41a074]
mov esi, dword [sym.imp.USER32.dll_ShowWindow]
push 5
push eax
call esi
mov ecx, dword [0x41a0ec]
push 1
push ecx
call dword [sym.imp.USER32.dll_EnableWindow]
mov edx, dword [esp + 0x214]
mov eax, dword [0x41a0ec]
push edx
push eax
call esi
mov eax, dword [0x41a07c]
test eax, eax
jne 0x403406
mov ecx, dword [0x41a0ec]
push ecx
call dword [sym.imp.USER32.dll_UpdateWindow]
mov edx, dword [0x41a0ec]
push edx
call dword [sym.imp.USER32.dll_SetFocus]
call fcn.00402640
mov al, byte [0x41a0f8]
test al, al
jne 0x403419
call fcn.00407240
mov eax, dword [0x41a07c]
test eax, eax
mov esi, dword [sym.imp.USER32.dll_TranslateMessage]
mov edi, dword [sym.imp.USER32.dll_DispatchMessageA]
je 0x403481
mov ebp, dword [sym.imp.USER32.dll_PeekMessageA]
push 1
push 1
push 0
push 0
lea eax, [esp + 0x38]
push eax
call ebp
test eax, eax
je 0x403468
lea ecx, [esp + 0x28]
push ecx
call esi
lea edx, [esp + 0x28]
push edx
call edi
push 1
push 1
push 0
push 0
lea eax, [esp + 0x38]
push eax
call ebp
test eax, eax
jne 0x403447
mov ecx, dword [0x41a0ec]
push 0
push 0xf020
push 0x112
push ecx
call dword [sym.imp.USER32.dll_SendMessageA]
mov ebp, dword [sym.imp.USER32.dll_GetMessageA]
push 0
push 0
push 0
lea edx, [esp + 0x34]
push edx
call ebp
test eax, eax
je 0x4034b7
lea eax, [esp + 0x28]
push eax
call esi
lea ecx, [esp + 0x28]
push ecx
call edi
push 0
push 0
push 0
lea edx, [esp + 0x34]
push edx
call ebp
test eax, eax
jne 0x403498
mov ebx, dword [esp + 0x208]
mov edi, dword [esp + 0x10]
call fcn.00407260
call fcn.00402900
mov eax, dword [0x41a104]
push ebx
push eax
call dword [sym.imp.USER32.dll_UnregisterClassA]
push str.Unloaded.
call fcn.00402530
mov eax, dword [0x41a100]
mov esi, dword [sym.imp.KERNEL32.DLL_CloseHandle]
add esp, 4
test eax, eax
je 0x403505
push eax
call dword [sym.imp.KERNEL32.DLL_FlushFileBuffers]
mov ecx, dword [0x41a100]
push ecx
call esi
test edi, edi
je 0x403511
cmp edi, 0xffffffff
je 0x403511
push edi
call esi
push 0x41a0c8
call dword [sym.imp.KERNEL32.DLL_DeleteCriticalSection]
mov edx, dword [0x41a0c0]
push edx
call dword [sym.imp.KERNEL32.DLL_UnmapViewOfFile]
mov eax, dword [0x419f68]
push eax
call esi
mov ecx, dword [0x41a0fc]
push ecx
call dword [sym.imp.KERNEL32.DLL_SetEvent]
push 0x64
call dword [sym.imp.KERNEL32.DLL_Sleep]
mov edx, dword [0x41a0fc]
push edx
call esi
pop edi
pop esi
pop ebp
xor eax, eax
pop ebx
add esp, 0x1f4
ret 0x10
cmp dword [0x41a07c], esi
jne 0x403574
push 5
push eax
call dword [sym.imp.USER32.dll_ShowWindow]
mov eax, dword [0x41a0ec]
push eax
call dword [sym.imp.USER32.dll_SetForegroundWindow]
pop edi
pop esi
pop ebp
mov eax, 2
pop ebx
add esp, 0x1f4
ret 0x10