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

Disassembly:
push ebp
mov ebp, esp
push eax
mov eax, 2
add esp, 0xfffff004
push eax
dec eax
jne 0x45a8bd
add esp, 0xfffff00c
mov eax, dword [ebp - 4]
xor eax, eax
mov edx, dword [0x466d20]
push ebx
push esi
push edi
mov ecx, dword [0x466d24]
mov dword [ebp - 4], 0xffffffff
mov dword [ebp - 8], eax
mov dword [ebp - 0x24], edx
mov dword [ebp - 0x28], ecx
lea eax, [ebp - 0x1c4]
push eax
push 0x104
xor edi, edi
call sub.kernel32.dll_GetCurrentDirectoryA
push 0x466d4c
lea edx, [ebp - 0x1c4]
push edx
call sub.MSVCRT.DLL_strcat
add esp, 8
lea ecx, [ebp - 0x1d4]
push 0x10
push 0
push ecx
call sub.MSVCRT.DLL_memset
add esp, 0xc
lea eax, [ebp - 0x1c]
push 9
push 0
push eax
call sub.MSVCRT.DLL_memset
add esp, 0xc
lea edx, [ebp - 0x1c4]
lea ecx, [ebp - 0x1d4]
push edx
push 0x10
push ecx
push 0x466d6c
push 0x466d63
push 0x466d58
call sub.kernel32.dll_GetPrivateProfileStringA
lea eax, [ebp - 0x1c4]
lea edx, [ebp - 0x1c]
push eax
push 9
push edx
push 0x466d84
push 0x466d78
push 0x466d6d
call sub.kernel32.dll_GetPrivateProfileStringA
lea ecx, [ebp - 0x1c4]
push ecx
push 0x1edc
push 0x466d93
push 0x466d88
call sub.kernel32.dll_GetPrivateProfileIntA
mov word [ebp - 0x1e], ax
lea eax, [ebp - 0x1c4]
push eax
push 0
push 0x466da6
push 0x466d9b
call sub.kernel32.dll_GetPrivateProfileIntA
cmp dword [ebp + 0xc], 0
mov esi, eax
jne 0x45a9c9
mov eax, 2
jmp 0x45aef1
cmp dword [0x466d18], 0
jne 0x45a9f7
push 0x466d1c
call fcn.0045c050
pop ecx
test eax, eax
je 0x45a9ed
mov esi, 3
mov eax, esi
jmp 0x45aef1
mov dword [0x466d18], 1
push 0x400
call sub.MSVCRT.DLL_malloc
pop ecx
mov dword [ebp - 0x2c], eax
mov ebx, dword [ebp - 0x2c]
lea eax, [ebp - 0x1d4]
mov edx, 0x466dae
mov cl, byte [eax]
cmp cl, byte [edx]
jne 0x45aa2f
test cl, cl
je 0x45aa75
mov cl, byte [eax + 1]
cmp cl, byte [edx + 1]
jne 0x45aa2f
add eax, 2
add edx, 2
test cl, cl
jne 0x45aa13
je 0x45aa75
test si, si
je 0x45aa75
mov dword [ebp - 8], 1
mov word [ebp - 0xbc], si
push 4
push 0x2e
lea eax, [ebp - 0x28]
push eax
lea edx, [ebp - 0x1d4]
push edx
call fcn.0045a71c
add esp, 0x10
push 4
lea ecx, [ebp - 0x28]
push ecx
lea eax, [ebp - 0xc0]
push eax
call sub.MSVCRT.DLL_memcpy
add esp, 0xc
jmp 0x45abff
lea eax, [ebp - 0x1d4]
mov edx, 0x466daf
mov cl, byte [eax]
cmp cl, byte [edx]
jne 0x45aa9c
test cl, cl
je 0x45aab5
mov cl, byte [eax + 1]
cmp cl, byte [edx + 1]
jne 0x45aa9c
add eax, 2
add edx, 2
test cl, cl
jne 0x45aa80
je 0x45aab5
push 4
push 0x2e
lea eax, [ebp - 0x28]
push eax
lea edx, [ebp - 0x1d4]
push edx
call fcn.0045a71c
add esp, 0x10
push 0
lea ecx, [ebp - 0x24]
push ecx
push 2
lea eax, [ebp - 0x214]
push eax
call fcn.0045c0f0
add esp, 0x10
mov esi, eax
test esi, esi
je 0x45aad9
mov eax, esi
jmp 0x45aef1
mov dx, word [ebp - 0x1e]
push edx
lea ecx, [ebp - 0x28]
push ecx
lea eax, [ebp - 0x214]
push eax
call fcn.0045c31c
add esp, 0xc
mov esi, eax
test esi, esi
je 0x45aafe
mov eax, esi
jmp 0x45aef1
mov word [ebx], 1
xor edx, edx
mov word [ebx + 2], 0xa
mov dword [ebx + 4], edx
push 0x3e8
push 0xc
push ebx
lea ecx, [ebp - 0x214]
push ecx
call fcn.0045c3b0
add esp, 0x10
mov esi, eax
test esi, esi
je 0x45ab3c
mov eax, dword [ebp - 0x2c]
push eax
call sub.MSVCRT.DLL_free
pop ecx
mov eax, esi
jmp 0x45aef1
mov dword [ebp - 0xc], 0x3f4
push 0x3e8
lea edx, [ebp - 0xc]
push edx
push ebx
lea ecx, [ebp - 0x214]
push ecx
call fcn.0045c4a8
add esp, 0x10
mov esi, eax
cmp esi, 0x102
je 0x45abf2
test esi, esi
je 0x45ab7f
mov eax, dword [ebp - 0x2c]
push eax
call sub.MSVCRT.DLL_free
pop ecx
mov eax, esi
jmp 0x45aef1
push 1
lea edx, [ebp - 4]
push edx
lea esi, [ebx + 8]
push esi
call fcn.0045ccd8
add esp, 0xc
push 2
mov eax, dword [ebp - 8]
add eax, eax
lea eax, [eax + eax*2]
lea edx, [ebp - 0xbc]
add eax, edx
push eax
push esi
call fcn.0045ccd8
add esp, 0xc
lea ecx, [ebp - 0x32]
push ecx
lea eax, [ebp - 0x30]
push eax
mov edx, dword [ebp - 8]
add edx, edx
lea edx, [edx + edx*2]
lea ecx, [ebp - 0xc0]
add edx, ecx
push edx
lea eax, [ebp - 0x214]
push eax
call fcn.0045bfe4
add esp, 0x10
mov esi, eax
test esi, esi
je 0x45abea
push 0x13e
push 0x466db0
call fcn.0045ba4c
inc dword [ebp - 8]
jmp 0x45ab3c
lea eax, [ebp - 0x214]
push eax
call fcn.0045c5ac
pop ecx
xor edx, edx
lea ecx, [ebp - 0xbc]
mov dword [ebp - 0x38], edx
mov dword [ebp - 0x44], ecx
mov eax, dword [ebp - 0x38]
cmp eax, dword [ebp - 8]
jae 0x45ae48
xor edx, edx
lea ecx, [ebp - 0x24]
mov dword [ebp - 0x10], edx
push 0
push ecx
lea eax, [ebp - 0x2ff8]
push 1
push eax
call fcn.0045c0f0
add esp, 0x10
mov edx, dword [ebp - 0x44]
mov cx, word [edx]
push ecx
mov eax, dword [ebp - 0x38]
add eax, eax
lea eax, [eax + eax*2]
lea edx, [ebp - 0xc0]
add eax, edx
push eax
lea ecx, [ebp - 0x2ff8]
push ecx
call fcn.0045c31c
add esp, 0xc
mov esi, eax
test esi, esi
je 0x45ac76
push 0x466e05
push 4
call fcn.0045b974
add esp, 8
jmp 0x45ae35
push 0x400
push 0
push ebx
call sub.MSVCRT.DLL_memset
mov word [ebx], 1
add esp, 0xc
mov word [ebx + 2], 0xa
push 4
lea edx, [ebx + 8]
mov eax, dword [ebp + 0xc]
push eax
push edx
call fcn.0045cc40
add esp, 0xc
lea ecx, [ebp - 0x1c]
push ecx
call sub.MSVCRT.DLL_strlen
pop ecx
push eax
lea eax, [ebp - 0x1c]
push eax
lea edx, [ebx + 8]
push edx
call fcn.0045cc40
add esp, 0xc
mov esi, eax
mov dword [ebx + 4], esi
add esi, 0xc
push 0x3e8
push esi
push ebx
lea eax, [ebp - 0x2ff8]
push eax
call fcn.0045c3b0
add esp, 0x10
mov esi, eax
test esi, esi
jne 0x45ae35
mov dword [ebp - 0xc], 0x3f4
push 0x1388
lea edx, [ebp - 0xc]
push edx
push ebx
lea ecx, [ebp - 0x2ff8]
push ecx
call fcn.0045c4a8
add esp, 0x10
mov esi, eax
test esi, esi
je 0x45ad20
push 0x466e13
push 4
call fcn.0045b974
add esp, 8
jmp 0x45ae35
lea eax, [ebp - 0x2ff8]
push eax
call fcn.0045c5ac
pop ecx
push 1
lea edx, [ebp - 4]
push edx
lea ecx, [ebx + 8]
push ecx
call fcn.0045ccd8
add esp, 0xc
cmp dword [ebp - 4], 0x12
je 0x45ae26
push 2
lea eax, [ebp - 0x10]
push eax
lea edx, [ebx + 8]
push edx
call fcn.0045ccd8
add esp, 0xc
mov eax, dword [ebp - 0x10]
mov ecx, 0x5c
xor edx, edx
div ecx
mov dword [ebp - 0x3c], eax
cmp dword [ebp - 4], 0x11
jne 0x45ad87
add edi, dword [ebp - 0x3c]
push 0x466e27
push 4
call fcn.0045b974
add esp, 8
jmp 0x45ae35
push 3
lea eax, [edi + edi*2]
shl eax, 3
sub eax, edi
shl eax, 2
lea edx, [ebp - 0x2fb8]
add eax, edx
push eax
lea ecx, [ebx + 8]
push ecx
call fcn.0045ccd8
xor eax, eax
lea edx, [edi + edi*2]
mov dword [ebp - 0x40], eax
lea eax, [edi + edi*4]
shl edx, 3
add esp, 0xc
sub edx, edi
lea eax, [edi + eax*2]
add eax, eax
lea ecx, [ebp + edx*4 - 0x2fb8]
mov dword [ebp - 0x48], ecx
lea esi, [eax*8 + 0x469cb4]
mov eax, dword [ebp - 0x40]
cmp eax, dword [ebp - 0x3c]
jge 0x45ae35
lea ecx, [edi + edi*4]
lea edx, [ebp - 0x2ff8]
push 0x40
push edx
lea ecx, [edi + ecx*2]
shl ecx, 4
add ecx, 0x469d08
push ecx
call sub.MSVCRT.DLL_memcpy
add esp, 0xc
lea eax, [edi + edi*4]
lea eax, [edi + eax*2]
shl eax, 4
add eax, 0x469cac
mov dword [esi], eax
mov edx, dword [ebp - 0x48]
mov dword [edx], edi
inc edi
add dword [ebp - 0x48], 0x5c
add esi, 0xb0
inc dword [ebp - 0x40]
mov ecx, dword [ebp - 0x40]
cmp ecx, dword [ebp - 0x3c]
jl 0x45add7
jmp 0x45ae35
push 0x466e3b
push 4
call fcn.0045b974
add esp, 8
inc dword [ebp - 0x38]
add dword [ebp - 0x44], 6
mov eax, dword [ebp - 0x38]
cmp eax, dword [ebp - 8]
jb 0x45ac19
lea edx, [edi + edi*2]
shl edx, 3
sub edx, edi
shl edx, 2
mov dword [ebp - 0x10], edx
cmp dword [ebp - 0x10], 0
jne 0x45ae7a
mov dword [ebp - 4], 0x12
mov ecx, dword [ebp + 0xc]
mov eax, dword [ebp - 0x10]
mov dword [ecx], eax
mov edx, dword [ebp - 0x2c]
push edx
call sub.MSVCRT.DLL_free
pop ecx
mov eax, dword [ebp - 4]
jmp 0x45aef1
mov edx, dword [ebp + 0xc]
mov ecx, dword [edx]
cmp ecx, dword [ebp - 0x10]
jae 0x45aea2
mov dword [ebp - 4], 0x11
mov eax, dword [ebp + 0xc]
mov edx, dword [ebp - 0x10]
mov dword [eax], edx
mov ecx, dword [ebp - 0x2c]
push ecx
call sub.MSVCRT.DLL_free
pop ecx
mov eax, dword [ebp - 4]
jmp 0x45aef1
cmp dword [ebp + 8], 0
je 0x45aebf
mov edx, dword [ebp - 0x10]
lea ecx, [ebp - 0x2fb8]
push edx
push ecx
mov eax, dword [ebp + 8]
push eax
call sub.MSVCRT.DLL_memcpy
add esp, 0xc
mov edx, dword [ebp + 0xc]
mov ecx, dword [ebp - 0x10]
mov dword [edx], ecx
xor eax, eax
mov dword [ebp - 4], eax
mov edx, dword [ebp - 0x2c]
push edx
call sub.MSVCRT.DLL_free
pop ecx
jmp 0x45aeee
mov eax, dword [ebp - 4]
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 8