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

Disassembly:
push 0xffffffffffffffff
push 0x420ea8
mov eax, dword fs:[0]
push eax
mov eax, 0x19c8
call fcn.0041e070
mov eax, dword [0x42d028]
xor eax, esp
mov dword [esp + 0x19c4], eax
push ebx
push esi
push edi
mov eax, dword [0x42d028]
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.00409170
add esp, 4
test al, al
je 0x41c55f
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.00408e40
add esp, 4
push 0x200
lea ebx, [esp + 0xdd8]
call fcn.004014b0
test al, al
je 0x41c58d
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 0x41c58d
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 0x41c40b
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.0041c5b0
cmp eax, 1
jne 0x41c58d
mov ecx, dword [str.none]
mov ax, word [0x4218a8]
mov edx, dword [0x4218a4]
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, 0x426978
lea eax, [esp + 0x44]
lea ecx, [ecx]
mov dx, word [eax]
cmp dx, word [ecx]
jne 0x41c4c6
test dx, dx
je 0x41c4c2
mov dx, word [eax + 2]
cmp dx, word [ecx + 2]
jne 0x41c4c6
add eax, 4
add ecx, 4
test dx, dx
jne 0x41c4a0
xor eax, eax
jmp 0x41c4cb
sbb eax, eax
sbb eax, 0xffffffff
test eax, eax
lea eax, [esp + 0x1d4]
push eax
je 0x41c545
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 0x41c360
cmp edi, 1
je 0x41c58d
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 0x41c564
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.0041d7b2
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 0x41c564