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

Disassembly:
push 0xffffffffffffffff
push 0x41a5f8
mov eax, dword fs:[0]
push eax
mov eax, 0x19cc
call fcn.00418140
mov eax, dword [0x425028]
xor eax, esp
mov dword [esp + 0x19c4], eax
push ebx
push esi
push edi
mov eax, dword [0x425028]
xor eax, esp
push eax
lea eax, [esp + 0x19dc]
mov dword fs:[0], eax
mov eax, dword [esp + 0x19ec]
mov esi, ecx
lea ecx, [esp + 0x10c]
push ecx
mov dword [esp + 0x1c], eax
call fcn.00406c20
add esp, 4
test al, al
je 0x41641f
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 + 0x19e4], 0
call dword [sym.imp.MFC80U.DLL_Ordinal_293]
push 0x200
lea esi, [esp + 0x9d8]
mov byte [esp + 0x19e8], 1
mov edi, 1
call fcn.004068f0
add esp, 4
push 0x200
lea ebx, [esp + 0xdd8]
call fcn.00401580
test al, al
je 0x41644d
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 0x41644d
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 0x4162cb
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.00416470
cmp eax, 1
jne 0x41644d
mov ecx, dword [str.none]
mov ax, word [0x41b808]
mov edx, dword [0x41b804]
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, 0x41f998
lea eax, [esp + 0x44]
lea ecx, [ecx]
mov dx, word [eax]
cmp dx, word [ecx]
jne 0x416386
test dx, dx
je 0x416382
mov dx, word [eax + 2]
cmp dx, word [ecx + 2]
jne 0x416386
add eax, 4
add ecx, 4
test dx, dx
jne 0x416360
xor eax, eax
jmp 0x41638b
sbb eax, eax
sbb eax, 0xffffffff
test eax, eax
lea eax, [esp + 0x1d4]
push eax
je 0x416405
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 0x416220
cmp edi, 1
je 0x41644d
lea ecx, [esp + 0x14]
call dword [sym.imp.MFC80U.DLL_Ordinal_575]
lea ecx, [esp + 0x10]
call dword [sym.imp.MFC80U.DLL_Ordinal_575]
mov eax, 6
jmp 0x416424
call dword [sym.imp.kernel32.dll_DeleteFileW]
lea ecx, [esp + 0x14]
call dword [sym.imp.MFC80U.DLL_Ordinal_575]
lea ecx, [esp + 0x10]
call dword [sym.imp.MFC80U.DLL_Ordinal_575]
mov eax, 1
mov ecx, dword [esp + 0x19dc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov ecx, dword [esp + 0x19c4]
xor ecx, esp
call fcn.00417909
add esp, 0x19d8
ret 4
lea ecx, [esp + 0x14]
call dword [sym.imp.MFC80U.DLL_Ordinal_575]
lea ecx, [esp + 0x10]
call dword [sym.imp.MFC80U.DLL_Ordinal_575]
mov eax, 5
jmp 0x416424