Function at 0x421890
Capabilities:
Delete file
Read .ini file
Set file attributes

Disassembly:
push 0xffffffffffffffff
push 0x426aa8
mov eax, dword fs:[0]
push eax
mov eax, 0x19c8
call fcn.00423640
mov eax, dword [0x435028]
xor eax, esp
mov dword [esp + 0x19c4], eax
push ebx
push esi
push edi
mov eax, dword [0x435028]
xor eax, esp
push eax
lea eax, [esp + 0x19d8]
mov dword fs:[0], eax
mov eax, dword [esp + 0x19e8]
mov esi, ecx
lea ecx, [esp + 0x10c]
push ecx
mov dword [esp + 0x1c], eax
call fcn.0040eae0
add esp, 4
test al, al
je 0x421bdf
push 0x3fe
lea edx, [esp + 0x5da]
push 0
push edx
mov word [esp + 0x5e0], 0
call sub.MSVCR80.dll_memset
push 0x3fe
lea eax, [esp + 0x1e6]
push 0
push eax
mov word [esp + 0x1ec], 0
call sub.MSVCR80.dll_memset
add esp, 0x18
lea ecx, [esp + 0x10]
call dword [sym.imp.MFC80U.DLL_Ordinal_293]
lea ecx, [esp + 0x14]
mov dword [esp + 0x19e0], 0
call dword [sym.imp.MFC80U.DLL_Ordinal_293]
push 0x200
lea esi, [esp + 0x9d8]
mov byte [esp + 0x19e4], 1
mov edi, 1
call fcn.0040e7b0
add esp, 4
push 0x200
lea ebx, [esp + 0xdd8]
call fcn.00402770
test al, al
je 0x421c0d
mov esi, dword [sym.imp.MFC80U.DLL_Ordinal_2311]
push edi
lea ecx, [esp + 0x14]
push str.log_d.dmb
push ecx
call esi
push edi
lea edx, [esp + 0x24]
push str.log_d.ini
push edx
call esi
mov ecx, dword [esp + 0x28]
mov ebx, dword [sym.imp.KERNEL32.dll_SearchPathW]
add esp, 0x18
push 0
lea eax, [esp + 0x11d8]
push eax
push 0x400
push 0
push ecx
lea edx, [esp + 0x9e8]
push edx
call ebx
test eax, eax
je 0x421c0d
lea esp, [esp]
lea eax, [esp + 0x9d4]
push eax
lea ecx, [esp + 0x5d8]
push 0x200
push ecx
call dword [sym.imp.MSVCR80.dll_wcscpy_s]
lea edx, [esp + 0xde0]
push edx
lea eax, [esp + 0x1e4]
push 0x200
push eax
call dword [sym.imp.MSVCR80.dll_wcscpy_s]
mov ecx, dword [esp + 0x28]
push ecx
lea edx, [esp + 0x5f0]
push 0x200
push edx
call dword [sym.imp.MSVCR80.dll_wcscat_s]
mov eax, dword [esp + 0x38]
push eax
lea ecx, [esp + 0x1fc]
push 0x200
push ecx
call dword [sym.imp.MSVCR80.dll_wcscat_s]
add esp, 0x30
push 0
lea edx, [esp + 0x11d8]
push edx
push 0x400
push 0
lea eax, [esp + 0x1e4]
push eax
push 0
call ebx
test eax, eax
je 0x421a8b
push 0x80
lea ecx, [esp + 0x1d8]
push ecx
call dword [sym.imp.KERNEL32.dll_SetFileAttributesW]
lea edx, [esp + 0x1d4]
push edx
call dword [sym.imp.KERNEL32.dll_DeleteFileW]
lea eax, [esp + 0x1d4]
push eax
lea ecx, [esp + 0x5d8]
call fcn.00421c30
cmp eax, 1
jne 0x421c0d
mov ecx, dword [str.none]
mov ax, word [0x4279f8]
mov edx, dword [0x4279f4]
mov dword [esp + 0x1c], ecx
lea ecx, [esp + 0x1d4]
push ecx
mov dword [esp + 0x24], edx
mov word [esp + 0x28], ax
xor eax, eax
push 0x64
lea edx, [esp + 0x4c]
push edx
mov edx, dword [esp + 0x24]
mov dword [esp + 0x32], eax
mov dword [esp + 0x36], eax
mov dword [esp + 0x3a], eax
mov dword [esp + 0x3e], eax
mov dword [esp + 0x42], eax
mov dword [esp + 0x46], eax
mov dword [esp + 0x4a], eax
mov word [esp + 0x4e], ax
lea eax, [esp + 0x28]
push eax
lea ecx, [esp + 0x11c]
push ecx
add edx, 0x64
push edx
call dword [sym.imp.KERNEL32.dll_GetPrivateProfileStringW]
mov ecx, 0x42d310
lea eax, [esp + 0x44]
lea ecx, [ecx]
mov dx, word [eax]
cmp dx, word [ecx]
jne 0x421b46
test dx, dx
je 0x421b42
mov dx, word [eax + 2]
cmp dx, word [ecx + 2]
jne 0x421b46
add eax, 4
add ecx, 4
test dx, dx
jne 0x421b20
xor eax, eax
jmp 0x421b4b
sbb eax, eax
sbb eax, 0xffffffff
test eax, eax
lea eax, [esp + 0x1d4]
push eax
je 0x421bc5
call dword [sym.imp.KERNEL32.dll_DeleteFileW]
add edi, 1
push edi
lea ecx, [esp + 0x14]
push str.log_d.dmb
push ecx
call esi
push edi
lea edx, [esp + 0x24]
push str.log_d.ini
push edx
call esi
mov ecx, dword [esp + 0x28]
add esp, 0x18
push 0
lea eax, [esp + 0x11d8]
push eax
push 0x400
push 0
push ecx
lea edx, [esp + 0x9e8]
push edx
call ebx
test eax, eax
jne 0x4219e0
cmp edi, 1
je 0x421c0d
lea ecx, [esp + 0x14]
call dword [sym.imp.MFC80U.DLL_Ordinal_577]
lea ecx, [esp + 0x10]
call dword [sym.imp.MFC80U.DLL_Ordinal_577]
mov eax, 6
jmp 0x421be4
call dword [sym.imp.KERNEL32.dll_DeleteFileW]
lea ecx, [esp + 0x14]
call dword [sym.imp.MFC80U.DLL_Ordinal_577]
lea ecx, [esp + 0x10]
call dword [sym.imp.MFC80U.DLL_Ordinal_577]
mov eax, 1
mov ecx, dword [esp + 0x19d8]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov ecx, dword [esp + 0x19c4]
xor ecx, esp
call fcn.00422de8
add esp, 0x19d4
ret 4
lea ecx, [esp + 0x14]
call dword [sym.imp.MFC80U.DLL_Ordinal_577]
lea ecx, [esp + 0x10]
call dword [sym.imp.MFC80U.DLL_Ordinal_577]
mov eax, 5
jmp 0x421be4