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

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffffdf0
push esi
xor ecx, ecx
mov dword [ebp - 0x20c], ecx
mov dword [ebp - 0x210], ecx
mov esi, eax
xor eax, eax
push ebp
push 0x526c37
push dword fs:[eax]
mov dword fs:[eax], esp
test dl, dl
je 0x526bd8
mov eax, dword [0x5414d4]
mov byte [eax], 1
mov eax, dword [0x541324]
mov eax, dword [eax]
call fcn.00493458
lea eax, [ebp - 0x104]
push eax
push 0x400
call sub.kernel32.dll_GetCurrentDirectoryA
lea eax, [ebp - 0x104]
call fcn.00409594
lea edx, [ebp - 0x104]
add eax, edx
mov edx, 0x526c44
call fcn.0040969c
mov edx, 0x526c48
lea eax, [ebp - 0x104]
call fcn.0040969c
lea eax, [ebp - 0x104]
push eax
mov eax, dword [0x5413a8]
push eax
push 0x526c54
push 0x526c5c
call sub.kernel32.dll_WritePrivateProfileStringA
lea eax, [ebp - 0x104]
push eax
mov eax, dword [0x540fb0]
push eax
push 0x526c64
push 0x526c5c
call sub.kernel32.dll_WritePrivateProfileStringA
lea eax, [ebp - 0x104]
push eax
push 0
push 0x526c6c
push 0x526c5c
call sub.kernel32.dll_GetPrivateProfileIntA
lea eax, [ebp - 0x210]
mov edx, dword [0x540fb0]
mov ecx, 0xa
call fcn.0040485c
mov ecx, dword [ebp - 0x210]
lea eax, [ebp - 0x20c]
mov edx, 0x526c78
call fcn.004048f8
mov edx, dword [ebp - 0x20c]
mov eax, dword [0x54166c]
mov eax, dword [eax]
mov eax, dword [eax + 0x330]
call fcn.0044b308
mov eax, dword [0x5414b4]
cmp dword [eax], 1
jne 0x526aa9
mov edx, 0x526c84
lea eax, [ebp - 0x208]
call fcn.004095d0
jmp 0x526baf
mov eax, dword [0x5414b4]
cmp dword [eax], 2
jne 0x526ac8
mov edx, 0x526c90
lea eax, [ebp - 0x208]
call fcn.004095d0
jmp 0x526baf
mov eax, dword [0x5414b4]
cmp dword [eax], 3
jne 0x526ae7
mov edx, 0x526c9c
lea eax, [ebp - 0x208]
call fcn.004095d0
jmp 0x526baf
mov eax, dword [0x5414b4]
cmp dword [eax], 4
jne 0x526b06
mov edx, 0x526ca8
lea eax, [ebp - 0x208]
call fcn.004095d0
jmp 0x526baf
mov eax, dword [0x5414b4]
cmp dword [eax], 5
jne 0x526b25
mov edx, 0x526cb8
lea eax, [ebp - 0x208]
call fcn.004095d0
jmp 0x526baf
mov eax, dword [0x5414b4]
cmp dword [eax], 6
jne 0x526b41
mov edx, 0x526cc4
lea eax, [ebp - 0x208]
call fcn.004095d0
jmp 0x526baf
mov eax, dword [0x5414b4]
cmp dword [eax], 7
jne 0x526b5d
mov edx, 0x526cd0
lea eax, [ebp - 0x208]
call fcn.004095d0
jmp 0x526baf
mov eax, dword [0x5414b4]
cmp dword [eax], 8
jne 0x526b79
mov edx, 0x526cdc
lea eax, [ebp - 0x208]
call fcn.004095d0
jmp 0x526baf
mov eax, dword [0x5414b4]
cmp dword [eax], 9
jne 0x526b95
mov edx, 0x526ce8
lea eax, [ebp - 0x208]
call fcn.004095d0
jmp 0x526baf
mov eax, dword [0x5414b4]
cmp dword [eax], 0xa
jne 0x526baf
mov edx, 0x526cf8
lea eax, [ebp - 0x208]
call fcn.004095d0
lea eax, [ebp - 0x208]
push eax
mov eax, dword [0x540fa0]
mov eax, dword [eax]
push eax
call sub.user32.dll_SetWindowTextA
push 0
push 0
push 0x10
mov eax, dword [0x541500]
mov eax, dword [eax]
push eax
call sub.user32.dll_PostMessageA
jmp 0x526c19
mov dl, 1
mov eax, dword [esi + 0x30c]
mov ecx, dword [eax]
call dword [ecx + 0x64]
mov dl, 1
mov eax, dword [esi + 0x310]
mov ecx, dword [eax]
call dword [ecx + 0x64]
mov dl, 1
mov eax, dword [esi + 0x314]
mov ecx, dword [eax]
call dword [ecx + 0x64]
xor edx, edx
mov eax, dword [esi + 0x314]
call fcn.0044b308
mov dl, 1
mov eax, dword [esi + 0x300]
mov ecx, dword [eax]
call dword [ecx + 0x64]
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x526c3e
lea eax, [ebp - 0x210]
mov edx, 2
call fcn.00404618
ret