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

Disassembly:
sub esp, 0x45c
xor eax, eax
mov dword [esp + 0x34], eax
mov eax, dword [esp + 0x464]
mov dword [esp + 0x458], ebp
mov dword [esp + 0x44c], ebx
mov dword [esp + 0x450], esi
mov dword [esp + 0x454], edi
mov dword [esp], eax
call fcn.004388f0
mov dword [esp], 0x5c6838
call sub.KERNEL32.dll_LoadLibraryA
sub esp, 4
test eax, eax
mov ebp, eax
je 0x47ab10
mov dword [esp], ebp
mov eax, 0x5c6845
mov edi, 0x5c6856
mov dword [esp + 4], eax
call sub.KERNEL32.dll_GetProcAddress
sub esp, 8
mov dword [esp + 0x30], eax
mov eax, 0x5c6865
mov dword [esp + 4], eax
mov dword [esp], ebp
call sub.KERNEL32.dll_GetProcAddress
sub esp, 8
mov esi, eax
mov dword [esp + 4], edi
mov dword [esp], ebp
call sub.KERNEL32.dll_GetProcAddress
sub esp, 8
test eax, eax
mov dword [esp + 0x2c], eax
setne al
xor edx, edx
test esi, esi
setne dl
test edx, eax
je 0x47aad0
mov ebx, dword [esp + 0x30]
test ebx, ebx
je 0x47aad0
mov edx, 0x40
xor ecx, ecx
mov ebx, 0xffffffff
mov dword [esp + 4], edx
mov edx, dword [esp + 0x460]
mov dword [esp + 0x3c], ecx
mov dword [esp], edx
call sub.msvcrt.dll_strchr
test eax, eax
mov edi, eax
je 0x47a9cd
lea ebx, [esp + 0x360]
mov dword [esp], ebx
call fcn.004388f0
mov dword [esp + 8], ebx
mov eax, 0xffffffff
mov dword [esp + 4], eax
lea eax, [edi + 1]
mov dword [esp], eax
call fcn.00458110
mov dword [esp], 0
mov edx, eax
lea eax, [esp + 0x3c]
mov dword [esp + 4], edx
mov dword [esp + 8], eax
call esi
sub esp, 0xc
mov esi, eax
mov dword [esp], ebx
mov ebx, edi
call fcn.00438bf0
mov eax, dword [esp + 0x460]
sub ebx, eax
test esi, esi
jne 0x47aab0
lea esi, [esp + 0x360]
mov dword [esp], esi
call fcn.004388f0
mov dword [esp + 8], esi
mov eax, dword [esp + 0x460]
mov dword [esp + 4], ebx
mov dword [esp], eax
call fcn.00458110
mov edx, eax
lea eax, [esp + 0x38]
mov dword [esp + 0xc], eax
mov eax, 1
mov dword [esp + 8], eax
mov eax, dword [esp + 0x3c]
mov dword [esp + 4], edx
mov dword [esp], eax
call dword [esp + 0x2c]
sub esp, 0x10
test eax, eax
jne 0x47aaa8
mov eax, dword [esp + 0x38]
mov ebx, dword [eax + 0x10]
test ebx, ebx
je 0x47aa35
cmp word [ebx], 0
jne 0x47ab98
lea ebx, [esp + 0x150]
mov eax, 0x104
mov edi, 0x5c6872
mov dword [esp + 4], eax
mov dword [esp], ebx
call sub.KERNEL32.dll_GetWindowsDirectoryW
sub esp, 8
mov eax, dword [esp + 0x464]
mov dword [esp], ebx
mov dword [esp + 8], eax
mov eax, 2
mov dword [esp + 4], eax
call fcn.00457fa0
mov dword [esp + 4], edi
mov edx, dword [esp + 0x464]
mov eax, 0xffffffff
mov dword [esp + 8], eax
mov dword [esp], edx
call fcn.00438910
mov eax, dword [esp + 0x464]
mov eax, dword [eax]
mov dword [esp + 0x34], eax
mov eax, dword [esp + 0x38]
mov dword [esp], eax
call dword [esp + 0x30]
sub esp, 4
mov dword [esp], esi
call fcn.00438bf0
mov eax, dword [esp + 0x3c]
test eax, eax
je 0x47aad0
mov dword [esp], eax
call dword [esp + 0x30]
sub esp, 4
lea esi, [esi]
lea edi, [edi]
mov dword [esp], ebp
call sub.KERNEL32.dll_FreeLibrary
sub esp, 4
mov esi, dword [esp + 0x34]
test esi, esi
je 0x47ab10
mov eax, dword [esp + 0x34]
mov ebx, dword [esp + 0x44c]
mov esi, dword [esp + 0x450]
mov edi, dword [esp + 0x454]
mov ebp, dword [esp + 0x458]
add esp, 0x45c
ret
mov edx, dword [esp + 0x460]
cmp byte [edx], 0x2a
je 0x47aae3
mov dword [esp + 4], edx
mov ebx, 0x5c6881
mov ecx, 0x104
mov dword [esp + 0x14], ebx
mov eax, 0x5c688c
lea ebx, [esp + 0x40]
mov dword [esp + 0x10], ecx
mov dword [esp + 0xc], ebx
mov dword [esp + 8], eax
mov dword [esp], 0x5c688d
call sub.KERNEL32.dll_GetPrivateProfileStringA
sub esp, 0x18
test eax, eax
je 0x47aae3
mov dword [esp], ebx
mov eax, 0x104
mov dword [esp + 4], eax
call sub.KERNEL32.dll_GetWindowsDirectoryA
sub esp, 8
mov eax, 3
mov dword [esp + 8], eax
mov eax, dword [esp + 0x464]
mov dword [esp + 4], ebx
mov dword [esp], eax
call fcn.00438910
mov edx, dword [esp + 0x464]
mov edx, dword [edx]
mov dword [esp + 0x34], edx
jmp 0x47aae3
mov dword [esp], ebx
call sub.KERNEL32.dll_lstrlenW
sub esp, 4
mov edx, dword [esp + 0x464]
mov dword [esp + 4], eax
mov dword [esp], ebx
mov dword [esp + 8], edx
call fcn.00457fa0
jmp 0x47aa8d