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

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x99c
push ebx
push esi
push edi
push 0x3f1
push dword [ebp + 8]
call dword [sym.imp.USER32.dll_GetDlgItem]
mov dword [ebp - 4], eax
lea eax, [ebp - 0x18]
push eax
push dword [ebp - 4]
call dword [sym.imp.USER32.dll_GetWindowRect]
mov eax, dword [ebp - 0x10]
mov ebx, dword [sym.imp.USER32.dll_SendMessageW]
sub eax, dword [ebp - 0x18]
mov dword [ebp - 8], eax
lea eax, [ebp - 8]
push eax
push 1
push 0x192
push dword [ebp - 4]
call ebx
mov esi, 0x104
lea eax, [ebp - 0x99c]
push esi
push eax
push 0x71
push dword [0x10080e0]
call dword [sym.imp.USER32.dll_LoadStringW]
lea eax, [ebp - 0x99c]
xor edi, edi
push eax
push edi
push 0x180
push dword [ebp - 4]
call ebx
mov ebx, 0x10080e8
push ebx
push dword [ebp + 8]
call fcn.01005574
lea eax, [ebp - 0x57c]
push esi
push eax
call fcn.01005134
lea eax, [ebp - 0x57c]
push eax
push dword [ebp + 8]
call fcn.01005574
lea eax, [ebp - 0x57c]
push eax
push edi
push edi
push 0x27
push edi
call dword [sym.imp.SHELL32.dll_SHGetFolderPathW]
test eax, eax
jne 0x1005269
lea eax, [ebp - 0x57c]
push eax
push dword [ebp + 8]
call fcn.01005574
push 0x1008308
push ebx
call dword [sym.imp.KERNEL32.dll_lstrcmpiW]
test eax, eax
je 0x1005286
push 0x1008308
push dword [ebp + 8]
call fcn.01005574
mov ebx, 0x1008518
push ebx
call fcn.0100321c
test eax, eax
jne 0x10052aa
push edi
push edi
push 0x186
push dword [ebp - 4]
call dword [sym.imp.USER32.dll_SendMessageW]
jmp 0x1005457
lea eax, [ebp - 0x68]
push eax
push 0x1001d50
call fcn.01002523
push ebx
lea eax, [ebp - 0x374]
push esi
push eax
push 0x1001cc0
lea eax, [ebp - 0x68]
push 0x10015fc
push eax
call dword [sym.imp.KERNEL32.dll_GetPrivateProfileStringW]
push edi
push edi
lea eax, [ebp - 0x16c]
push esi
push eax
lea eax, [ebp - 0x374]
push 0xffffffffffffffff
push eax
push edi
push edi
call dword [sym.imp.KERNEL32.dll_WideCharToMultiByte]
push 0x10
lea eax, [ebp - 0x16c]
push edi
push eax
call dword [sym.imp.MSVCRT.dll_strtoul]
add esp, 0xc
cmp eax, dword [0x1008974]
je 0x100531a
mov dword [0x1008974], eax
mov dword [0x1008970], 1
push ebx
lea eax, [ebp - 0x374]
push esi
push eax
push 0x1001ca8
lea eax, [ebp - 0x68]
push 0x10015cc
push eax
call dword [sym.imp.KERNEL32.dll_GetPrivateProfileStringW]
push edi
push edi
lea eax, [ebp - 0x16c]
push esi
push eax
lea eax, [ebp - 0x374]
push 0xffffffffffffffff
push eax
push edi
push edi
call dword [sym.imp.KERNEL32.dll_WideCharToMultiByte]
push 0x10
lea eax, [ebp - 0x16c]
push edi
push eax
call dword [sym.imp.MSVCRT.dll_strtoul]
add esp, 0xc
cmp eax, 0xffffffff
je 0x100537b
mov dword [0x1008004], eax
mov dword [section..data], 1
jmp 0x100538e
push 0xf
call dword [sym.imp.USER32.dll_GetSysColor]
mov dword [0x1008004], eax
mov dword [section..data], edi
push ebx
lea eax, [ebp - 0x374]
push esi
push eax
push 0x1001c98
lea eax, [ebp - 0x68]
push 0x1001558
push eax
call dword [sym.imp.KERNEL32.dll_GetPrivateProfileStringW]
lea eax, [ebp - 0x374]
push 0x1001c98
push eax
call dword [sym.imp.KERNEL32.dll_lstrcmpW]
test eax, eax
je 0x1005433
lea eax, [ebp - 0x374]
push 0x10b
push eax
lea eax, [ebp - 0x794]
push eax
call dword [sym.imp.KERNEL32.dll_lstrcpynW]
lea eax, [ebp - 0x794]
push 7
push eax
push 0x10019bc
lea esi, [ebp - 0x794]
call dword [sym.imp.SHLWAPI.dll_StrCmpNIW]
test eax, eax
jne 0x10053fe
lea esi, [ebp - 0x786]
push esi
push 0x1008308
push esi
call dword [sym.imp.SHLWAPI.dll_PathCombineW]
push esi
push 0x10091f0
call dword [sym.imp.KERNEL32.dll_lstrcpyW]
push ebx
push 0xffffffffffffffff
lea eax, [ebp - 0x68]
push 0x1001c7c
push eax
call dword [sym.imp.KERNEL32.dll_GetPrivateProfileIntW]
push dword [ebp + 8]
call fcn.01005598
jmp 0x1005457
push edi
push edi
push 0x186
push dword [ebp - 4]
call dword [sym.imp.USER32.dll_SendMessageW]
push esi
push 0x10091f0
push 0x71
push dword [0x10080e0]
call dword [sym.imp.USER32.dll_LoadStringW]
push 0x3f1
push dword [ebp + 8]
call dword [sym.imp.USER32.dll_GetDlgItem]
push eax
call dword [sym.imp.USER32.dll_SetFocus]
pop edi
pop esi
pop ebx
leave
ret 4