Function at 0x413070
Capabilities:
Get common file path
Read .ini file

Disassembly:
push 0xffffffffffffffff
push 0x46ff48
mov eax, dword fs:[0]
push eax
sub esp, 0x84c
mov eax, dword [0x4f8028]
xor eax, esp
mov dword [esp + 0x848], eax
push ebx
push ebp
push esi
push edi
mov eax, dword [0x4f8028]
xor eax, esp
push eax
lea eax, [esp + 0x860]
mov dword fs:[0], eax
test byte [0x504e28], 1
jne 0x4130cd
or dword [0x504e28], 1
call fcn.00457fa0
push 0x4733a0
call fcn.0046d920
add esp, 4
xor ebx, ebx
push 0x3fe
lea eax, [esp + 0x462]
push ebx
push eax
mov word [esp + 0x468], bx
call sub.ntdll.dll_memset
add esp, 0xc
push 0x200
lea ecx, [esp + 0x460]
push ecx
call dword [sym.imp.KERNEL32.dll_GetWindowsDirectoryW]
mov eax, dword [0x4fd098]
lea edx, [esp + 0x45c]
push edx
mov edx, dword [eax + 0x14]
mov ecx, 0x4fd098
mov word [esp + 0x466], bx
call edx
push 0x1ff
lea eax, [esp + 0x261]
push ebx
push eax
mov byte [esp + 0x268], bl
call sub.ntdll.dll_memset
add esp, 0xc
push 0x200
lea ecx, [esp + 0x260]
push ecx
push ebx
call dword [sym.imp.KERNEL32.dll_GetModuleFileNameA]
lea ecx, [esp + 0x30]
call dword [sym.imp.MSVCP80.dll_public:_void___thiscall_std::basic_string_char__struct_std::char_traits_char___class_std::allocator_char__::constructor_void_]
lea edx, [esp + 0x25c]
push edx
lea ecx, [esp + 0x34]
mov dword [esp + 0x86c], ebx
call dword [0x4747b0]
mov eax, dword [sym.imp.MSVCP80.dll_unsigned_int_const_std::basic_string_char__struct_std::char_traits_char___class_std::allocator_char__::npos]
mov ecx, dword [eax]
push ecx
push 0x478b60
lea ecx, [esp + 0x38]
call dword [sym.imp.MSVCP80.dll_public:_unsigned_int___thiscall_std::basic_string_char__struct_std::char_traits_char___class_std::allocator_char__::find_last_of_char_const___unsigned_int_const]
cmp eax, 0xffffffff
je 0x4134f5
add eax, 1
push eax
push ebx
lea edx, [esp + 0x1c]
push edx
lea ecx, [esp + 0x3c]
call dword [sym.imp.MSVCP80.dll_public:_class_std::basic_string_char__struct_std::char_traits_char___class_std::allocator_char_____thiscall_std::basic_string_char__struct_std::char_traits_char___class_std::allocator_char__::substr_unsigned_int__unsigned_int_]
push eax
lea ecx, [esp + 0x34]
mov byte [esp + 0x86c], 1
call dword [sym.imp.MSVCP80.dll_public:_class_std::basic_string_char__struct_std::char_traits_char___class_std::allocator_char______thiscall_std::basic_string_char__struct_std::char_traits_char___class_std::allocator_char__::operator_class_std::basic_string_char__struct_std::char_traits_char___class_std::allocator_char___const__]
lea ecx, [esp + 0x14]
mov byte [esp + 0x868], bl
call dword [sym.imp.MSVCP80.dll_public:_void___thiscall_std::basic_string_char__struct_std::char_traits_char___class_std::allocator_char__::destructor_void_]
push 0x478b64
lea ecx, [esp + 0x34]
call dword [sym.imp.MSVCP80.dll_public:_class_std::basic_string_char__struct_std::char_traits_char___class_std::allocator_char______thiscall_std::basic_string_char__struct_std::char_traits_char___class_std::allocator_char__::operator_char_const__]
xor eax, eax
mov edi, 0x10
cmp dword [esp + 0x48], edi
mov dword [esp + 0x55], eax
mov word [esp + 0x59], ax
mov byte [esp + 0x5b], al
mov dword [esp + 0x4d], eax
mov word [esp + 0x51], ax
mov byte [esp + 0x53], al
mov eax, dword [esp + 0x34]
mov byte [esp + 0x54], bl
mov byte [esp + 0x4c], bl
jae 0x413211
lea eax, [esp + 0x34]
mov esi, dword [sym.imp.KERNEL32.dll_GetPrivateProfileStringA]
push eax
push 8
lea eax, [esp + 0x5c]
push eax
push 0x478b6c
push 0x478b70
push 0x478aa8
call esi
cmp dword [esp + 0x48], edi
mov eax, dword [esp + 0x34]
jae 0x41323e
lea eax, [esp + 0x34]
push eax
push 8
lea ecx, [esp + 0x54]
push ecx
push 0x478a98
push str.affi
push 0x478aa8
call esi
mov edi, dword [sym.imp.ntdll.dll_atoi]
lea edx, [esp + 0x54]
push edx
call edi
mov ebp, eax
lea eax, [esp + 0x50]
push eax
call edi
lea ecx, [ebp - 1]
add esp, 8
cmp ecx, 6
ja case.0x41327c.2
jmp dword [ecx*4 + 0x413534]
sub eax, 1
mov edx, dword [0x4fd098]
mov ecx, 0x4fd098
je 0x4132c7
sub eax, 1
je 0x4132b8
sub eax, 1
mov eax, dword [edx + 0x20]
je 0x4132ac
call eax
push str.demo
jmp 0x41335e
call eax
push str.affiunl
jmp 0x41335e
mov eax, dword [edx + 0x20]
call eax
push str.affisrv
jmp 0x41335e
mov eax, dword [edx + 0x20]
call eax
push str.affipro
jmp 0x41335e
mov edx, dword [0x4fd098]
mov eax, dword [edx + 0x20]
mov ecx, 0x4fd098
call eax
push str.setup
jmp 0x41335e
mov edx, dword [0x4fd098]
mov eax, dword [edx + 0x20]
mov ecx, 0x4fd098
call eax
push 0x478ba8
jmp 0x41335e
mov edx, dword [0x4fd098]
mov eax, dword [edx + 0x20]
mov ecx, 0x4fd098
call eax
push 0x478bac
jmp 0x41335e
mov edx, dword [0x4fd098]
mov eax, dword [edx + 0x20]
mov ecx, 0x4fd098
call eax
push str.tech
jmp 0x41335e
mov edx, dword [0x4fd098]
mov eax, dword [edx + 0x20]
mov ecx, 0x4fd098
call eax
push 0x478bb8
jmp 0x41335e
mov edx, dword [0x4fd098]
mov eax, dword [edx + 0x20]
mov ecx, 0x4fd098
call eax
push 0x478bbc
mov edx, dword [eax]
mov ecx, eax
mov eax, dword [edx]
call eax
push 0x7f
lea ecx, [esp + 0x161]
push ebx
push ecx
mov byte [esp + 0x168], bl
call sub.ntdll.dll_memset
push 0x7f
lea edx, [esp + 0x1ed]
push ebx
push edx
mov byte [esp + 0x1f4], bl
call sub.ntdll.dll_memset
push 0x7f
lea eax, [esp + 0x79]
push ebx
push eax
mov byte [esp + 0x80], bl
call sub.ntdll.dll_memset
push 0x7f
lea ecx, [esp + 0x105]
push ebx
push ecx
mov byte [esp + 0x10c], bl
call sub.ntdll.dll_memset
mov eax, dword [esp + 0x64]
mov edi, 0x10
add esp, 0x30
cmp dword [esp + 0x48], edi
jae 0x4133d5
lea eax, [esp + 0x34]
push eax
push 0x80
lea edx, [esp + 0x164]
push edx
push str.aomei
push 0x478bc8
push str.Other
call esi
cmp dword [esp + 0x48], edi
mov eax, dword [esp + 0x34]
jae 0x413402
lea eax, [esp + 0x34]
push eax
push 0x80
lea eax, [esp + 0x1e4]
push eax
push 0x478bcc
push 0x478bd0
push str.Other
call esi
cmp dword [esp + 0x48], edi
mov eax, dword [esp + 0x34]
jae 0x41342f
lea eax, [esp + 0x34]
push eax
push 0x80
lea ecx, [esp + 0x64]
push ecx
push 0x478bd4
push str.Lang
push str.Other
call esi
cmp dword [esp + 0x48], edi
mov eax, dword [esp + 0x34]
jae 0x413459
lea eax, [esp + 0x34]
push eax
push 0x80
lea edx, [esp + 0xe4]
push edx
push 0x478be0
push 0x478be4
push str.Other
call esi
mov eax, dword [0x4fd098]
mov edx, dword [eax + 0x20]
mov ecx, 0x4fd098
call edx
mov edx, dword [eax]
mov edx, dword [edx + 4]
lea ecx, [esp + 0x5c]
push ecx
mov ecx, eax
call edx
mov eax, dword [0x4fd098]
mov edx, dword [eax + 0x20]
mov ecx, 0x4fd098
call edx
mov edx, dword [eax]
mov edx, dword [edx + 0x10]
lea ecx, [esp + 0x15c]
push ecx
mov ecx, eax
call edx
mov eax, dword [0x4fd098]
mov edx, dword [eax + 0x20]
mov ecx, 0x4fd098
call edx
mov edx, dword [eax]
mov edx, dword [edx + 0x14]
lea ecx, [esp + 0x1dc]
push ecx
mov ecx, eax
call edx
mov eax, dword [0x4fd098]
mov edx, dword [eax + 0x20]
mov ecx, 0x4fd098
call edx
mov edx, dword [eax]
mov edx, dword [edx + 0x18]
lea ecx, [esp + 0xdc]
push ecx
mov ecx, eax
call edx
lea ecx, [esp + 0x30]
mov dword [esp + 0x868], 0xffffffff
call dword [sym.imp.MSVCP80.dll_public:_void___thiscall_std::basic_string_char__struct_std::char_traits_char___class_std::allocator_char__::destructor_void_]
mov ecx, dword [esp + 0x860]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebp
pop ebx
mov ecx, dword [esp + 0x848]
xor ecx, esp
call fcn.0046d6fd
add esp, 0x858
ret