Function at 0x417b30
Capabilities:
Get common file path
Read .ini file
Set file attributes

Disassembly:
push ecx
push ebx
push ebp
push esi
push edi
mov dword [esp + 0x10], ecx
push 0xa
call sub.MFC42.DLL_operatornew
push 0x100
mov ebx, eax
call sub.MFC42.DLL_operatornew
add esp, 8
mov ebp, eax
push 0x100
push ebp
call dword [sym.imp.KERNEL32.dll_GetWindowsDirectoryA]
mov edi, ebp
or ecx, 0xffffffff
xor eax, eax
repne scasb al, byte es:[edi]
not ecx
dec ecx
je 0x417b7e
push 0x424220
push ebp
call dword [sym.imp.MSVCRT.dll_strstr]
add esp, 8
test eax, eax
jne 0x417b8a
push ebp
push 0x100
call dword [sym.imp.KERNEL32.dll_GetCurrentDirectoryA]
mov edi, str._setdz.mdb
or ecx, 0xffffffff
xor eax, eax
repne scasb al, byte es:[edi]
not ecx
sub edi, ecx
mov esi, edi
mov edx, ecx
mov edi, ebp
or ecx, 0xffffffff
repne scasb al, byte es:[edi]
mov ecx, edx
dec edi
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov eax, dword [esp + 0x18]
mov ecx, edx
and ecx, 3
test eax, eax
rep movsb byte es:[edi], byte [esi]
jne 0x417c29
mov esi, dword [sym.imp.KERNEL32.dll_GetPrivateProfileStringA]
push ebp
push 0xa
push ebx
push eax
push str.ManTotal0
push str.Role
call esi
mov edi, dword [sym.imp.MSVCRT.dll_atoi]
push ebx
call edi
mov ecx, dword [esp + 0x14]
add esp, 4
push ebp
push 0xa
push ebx
push 0
push str.ManTotal1
push str.Role
mov dword [ecx + 0x24], eax
call esi
push ebx
call edi
mov edx, dword [esp + 0x14]
add esp, 4
push ebp
push 0xa
push ebx
push 0
push str.ManTotal2
push str.Role
mov dword [edx + 0x28], eax
call esi
push ebx
call edi
mov ecx, dword [esp + 0x14]
add esp, 4
mov dword [ecx + 0x2c], eax
jmp 0x417e38
cmp eax, 1
jne 0x417c92
mov edx, dword [esp + 0x10]
mov esi, dword [sym.imp.MSVCRT.dll__itoa]
push 0xa
push ebx
mov eax, dword [edx + 0x24]
push eax
call esi
mov edi, dword [sym.imp.KERNEL32.dll_WritePrivateProfileStringA]
add esp, 0xc
push ebp
push ebx
push str.ManTotal0
push str.Role
call edi
mov ecx, dword [esp + 0x10]
push 0xa
push ebx
mov edx, dword [ecx + 0x28]
push edx
call esi
add esp, 0xc
push ebp
push ebx
push str.ManTotal1
push str.Role
call edi
mov eax, dword [esp + 0x10]
push 0xa
push ebx
mov ecx, dword [eax + 0x2c]
push ecx
call esi
add esp, 0xc
push ebp
push ebx
push str.ManTotal2
jmp 0x417d54
cmp eax, 2
jne 0x417d69
mov edx, dword [esp + 0x10]
mov esi, dword [sym.imp.MSVCRT.dll__itoa]
push 0xa
push ebx
mov eax, dword [edx + 0xc]
push eax
call esi
mov edi, dword [sym.imp.KERNEL32.dll_WritePrivateProfileStringA]
add esp, 0xc
push ebp
push ebx
push str.fail0
push str.Role
call edi
mov ecx, dword [esp + 0x10]
push 0xa
push ebx
mov edx, dword [ecx + 0x10]
push edx
call esi
add esp, 0xc
push ebp
push ebx
push str.fail1
push str.Role
call edi
mov eax, dword [esp + 0x10]
push 0xa
push ebx
mov ecx, dword [eax + 0x14]
push ecx
call esi
add esp, 0xc
push ebp
push ebx
push str.fail2
push str.Role
call edi
mov edx, dword [esp + 0x10]
push 0xa
push ebx
mov eax, dword [edx + 0x18]
push eax
call esi
add esp, 0xc
push ebp
push ebx
push str.victory0
push str.Role
call edi
mov ecx, dword [esp + 0x10]
push 0xa
push ebx
mov edx, dword [ecx + 0x1c]
push edx
call esi
add esp, 0xc
push ebp
push ebx
push str.victory1
push str.Role
call edi
mov eax, dword [esp + 0x10]
push 0xa
push ebx
mov ecx, dword [eax + 0x20]
push ecx
call esi
add esp, 0xc
push ebp
push ebx
push str.victory2
push str.Role
call edi
push 6
push ebp
call dword [sym.imp.KERNEL32.dll_SetFileAttributesA]
jmp 0x417e38
cmp eax, 3
jne 0x417e38
mov esi, dword [sym.imp.KERNEL32.dll_GetPrivateProfileStringA]
push ebp
push 0xa
push ebx
push 0
push str.fail0
push str.Role
call esi
mov edi, dword [sym.imp.MSVCRT.dll_atoi]
push ebx
call edi
mov edx, dword [esp + 0x14]
add esp, 4
push ebp
push 0xa
push ebx
push 0
push str.fail1
push str.Role
mov dword [edx + 0xc], eax
call esi
push ebx
call edi
mov ecx, dword [esp + 0x14]
add esp, 4
push ebp
push 0xa
push ebx
push 0
push str.fail2
push str.Role
mov dword [ecx + 0x10], eax
call esi
push ebx
call edi
mov edx, dword [esp + 0x14]
add esp, 4
push ebp
push 0xa
push ebx
push 0
push str.victory0
push str.Role
mov dword [edx + 0x14], eax
call esi
push ebx
call edi
mov ecx, dword [esp + 0x14]
add esp, 4
push ebp
push 0xa
push ebx
push 0
push str.victory1
push str.Role
mov dword [ecx + 0x18], eax
call esi
push ebx
call edi
mov edx, dword [esp + 0x14]
add esp, 4
push ebp
push 0xa
push ebx
push 0
push str.victory2
push str.Role
mov dword [edx + 0x1c], eax
call esi
push ebx
call edi
mov ecx, dword [esp + 0x14]
add esp, 4
mov dword [ecx + 0x20], eax
push ebx
call sub.MFC42.DLL_operatordelete
push ebp
call sub.MFC42.DLL_operatordelete
add esp, 8
pop edi
pop esi
pop ebp
pop ebx
pop ecx
ret 4