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

Disassembly:
push ebp
mov ebp, esp
push ecx
mov ecx, 9
push 0
push 0
dec ecx
jne 0x4a2d6d
xchg dword [ebp - 4], ecx
push ebx
push esi
push edi
mov esi, ecx
mov dword [ebp - 4], edx
mov ebx, eax
mov eax, dword [ebp - 4]
call fcn.00405c70
xor eax, eax
push ebp
push 0x4a3072
push dword fs:[eax]
mov dword fs:[eax], esp
mov eax, esi
call fcn.004057bc
mov edx, dword [ebp - 4]
mov eax, 0x4a3088
call fcn.00405dc4
mov edi, eax
test edi, edi
jne 0x4a2dc0
lea eax, [ebp - 8]
mov edx, 0x4a3094
call fcn.00405854
jmp 0x4a2dee
lea eax, [ebp - 0x30]
push eax
mov ecx, edi
dec ecx
mov edx, 1
mov eax, dword [ebp - 4]
call fcn.00405ce0
mov eax, dword [ebp - 0x30]
lea edx, [ebp - 8]
call fcn.0040a2b4
lea eax, [ebp - 4]
mov ecx, edi
mov edx, 1
call fcn.00405d20
lea edx, [ebp - 0x34]
mov eax, dword [ebp - 4]
call fcn.0040a2b4
mov edx, dword [ebp - 0x34]
lea eax, [ebp - 4]
call fcn.00405854
cmp dword [ebp - 8], 0
je 0x4a3028
cmp dword [ebp - 4], 0
je 0x4a3028
cmp dword [ebx + 0x6b888], 0
setne al
and al, byte [0x507090]
je 0x4a2e7c
cmp byte [ebx + 0x6b8a4], 0
jne 0x4a2e7c
push 0x4a30a4
lea eax, [ebp - 0x38]
push eax
mov ecx, dword [ebp - 4]
mov edx, dword [ebp - 8]
mov eax, dword [ebx + 0x6b888]
mov edi, dword [eax]
call dword [edi]
mov eax, dword [ebp - 0x38]
mov edx, 0x4a30a4
call fcn.00405bcc
jne 0x4a2e7c
push 0x4a30b0
mov ecx, dword [ebp - 4]
mov edx, dword [ebp - 8]
mov eax, dword [ebx + 0x6b888]
mov edi, dword [eax]
call dword [edi + 4]
mov eax, dword [ebx + 0x6b888]
mov edx, dword [eax]
call dword [edx + 0x58]
cmp dword [ebx + 0x6b884], 0
je 0x4a3028
cmp byte [ebx + 0x6b8b8], 0
jne 0x4a2eaa
push 0
push esi
mov ecx, dword [ebp - 4]
mov edx, dword [ebp - 8]
mov eax, dword [ebx + 0x6b884]
mov ebx, dword [eax]
call dword [ebx]
jmp 0x4a3028
push 0x4a30a4
push esi
mov ecx, dword [ebp - 4]
mov edx, dword [ebp - 8]
mov eax, dword [ebx + 0x6b8b4]
mov edi, dword [eax]
call dword [edi]
mov eax, dword [esi]
mov edx, 0x4a30a4
call fcn.00405bcc
jne 0x4a3028
mov eax, 0x7d0
call fcn.00402d70
mov dword [ebp - 0x1c], eax
lea edx, [ebp - 0x3c]
mov eax, dword [ebx + 0x6b884]
mov eax, dword [eax + 4]
call fcn.0040ac88
mov edx, dword [ebp - 0x3c]
lea eax, [ebp - 0x18]
call fcn.00406174
mov eax, dword [ebp - 0x1c]
push eax
push 0x7d0
call sub.kernel32.dll_GetCurrentDirectoryW
lea eax, [ebp - 0x40]
mov edx, dword [ebp - 0x1c]
call fcn.0040611c
push dword [ebp - 0x40]
push 0x4a30b8
push dword [ebp - 0x18]
lea eax, [ebp - 0x18]
mov edx, 3
call fcn.00406270
lea eax, [ebp - 0xc]
mov edx, dword [ebp - 8]
call fcn.00406174
mov eax, dword [ebp - 0xc]
call fcn.00406184
mov dword [ebp - 0x20], eax
lea eax, [ebp - 0x10]
mov edx, dword [ebp - 4]
call fcn.00406174
mov eax, dword [ebp - 0x10]
call fcn.00406184
mov dword [ebp - 0x24], eax
mov edi, 0x4a30bc
mov eax, dword [ebp - 0x18]
call fcn.00406184
push eax
push 0x7d0
mov eax, dword [ebp - 0x1c]
push eax
push edi
mov eax, dword [ebp - 0x24]
push eax
mov eax, dword [ebp - 0x20]
push eax
call sub.kernel32.dll_GetPrivateProfileStringW
lea eax, [ebp - 0x14]
mov edx, dword [ebp - 0x1c]
call fcn.0040611c
mov eax, esi
call fcn.004057bc
mov eax, dword [ebp - 0x14]
call fcn.00406194
test eax, eax
jle 0x4a300c
mov dword [ebp - 0x2c], eax
mov dword [ebp - 0x28], 1
mov eax, dword [ebp - 0x14]
mov edx, dword [ebp - 0x28]
movzx edi, word [eax + edx*2 - 2]
cmp di, 0x80
jae 0x4a2fd0
lea eax, [ebp - 0x44]
mov edx, edi
and dl, 0xff
call fcn.004059a4
mov edx, dword [ebp - 0x44]
mov eax, esi
call fcn.00405a88
jmp 0x4a3004
push dword [esi]
push 0x4a30c8
lea eax, [ebp - 0x48]
mov edx, edi
and dl, 0xff
call fcn.004059a4
push dword [ebp - 0x48]
lea eax, [ebp - 0x4c]
movzx edx, di
shr edx, 8
call fcn.004059a4
push dword [ebp - 0x4c]
mov eax, esi
mov edx, 4
call fcn.00405b40
inc dword [ebp - 0x28]
dec dword [ebp - 0x2c]
jne 0x4a2fa5
mov eax, dword [ebp - 0x1c]
call fcn.00402d8c
mov eax, dword [esi]
push eax
mov ecx, dword [ebp - 4]
mov edx, dword [ebp - 8]
mov eax, dword [ebx + 0x6b884]
mov ebx, dword [eax]
call dword [ebx + 4]
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x4a3079
lea eax, [ebp - 0x4c]
mov edx, 3
call fcn.004057e0
lea eax, [ebp - 0x40]
call fcn.00405ff0
lea eax, [ebp - 0x3c]
mov edx, 4
call fcn.004057e0
lea eax, [ebp - 0x18]
mov edx, 4
call fcn.00406008
lea eax, [ebp - 8]
mov edx, 2
call fcn.004057e0
ret