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

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x1007af18
mov eax, dword fs:[0]
push eax
sub esp, 0x644
mov eax, dword [0x10094610]
xor eax, ebp
mov dword [ebp - 0x10], eax
push ebx
push esi
push edi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov eax, dword [ebp + 8]
xor ecx, ecx
mov dword [ebp - 0x648], ecx
mov dword [ebp - 0x644], eax
mov eax, dword [0x10095a04]
mov dword [ebp - 0x62c], eax
mov dword [ebp - 4], ecx
mov dword [ebp - 0x640], eax
mov edi, eax
mov dword [ebp - 0x63c], edi
mov byte [ebp - 4], 2
cmp dword [edi - 8], ecx
je 0x1000353c
cmp dword [edi - 0xc], ecx
lea esi, [edi - 0xc]
jl 0x10003519
lea ecx, [edi - 0xc]
cmp ecx, dword [0x10095a00]
je 0x1000353c
push esi
call dword [sym.imp.KERNEL32.dll_InterlockedDecrement]
test eax, eax
jg 0x1000350b
push esi
call fcn.10066c8a
add esp, 4
mov edx, dword [0x10095a04]
mov dword [ebp - 0x63c], edx
jmp 0x10003536
push 0x100824b4
call dword [sym.imp.KERNEL32.dll_lstrlenW]
push 0x100824b4
mov ebx, eax
lea esi, [ebp - 0x63c]
call fcn.10004f10
mov edi, dword [ebp - 0x63c]
lea eax, [ebp - 0x420]
push eax
push 1
push 0
push 0x1a
push 0
call dword [sym.imp.SHELL32.dll_SHGetFolderPathW]
test eax, eax
je 0x10003610
cmp dword [edi - 0xc], 0
lea esi, [edi - 0xc]
mov dword [ebp - 0x630], esi
jl 0x10003579
mov ecx, dword [ebp - 0x644]
push esi
mov dword [ecx], edi
call dword [sym.imp.KERNEL32.dll_InterlockedIncrement]
jmp 0x1000359c
mov edx, dword [0x10095a04]
mov esi, dword [ebp - 0x644]
push edi
mov dword [esi], edx
call dword [sym.imp.KERNEL32.dll_lstrlenW]
push edi
mov ebx, eax
call fcn.10004f10
mov esi, dword [ebp - 0x630]
add edi, 0xfffffff4
cmp edi, dword [0x10095a00]
mov edi, dword [sym.imp.KERNEL32.dll_InterlockedDecrement]
je 0x100035bd
push esi
call edi
test eax, eax
jg 0x100035bd
push esi
call fcn.10066c8a
add esp, 4
mov esi, dword [ebp - 0x640]
lea eax, [esi - 0xc]
cmp eax, dword [0x10095a00]
je 0x100035e1
add esi, 0xfffffff4
push esi
call edi
test eax, eax
jg 0x100035e1
push esi
call fcn.10066c8a
add esp, 4
mov esi, dword [ebp - 0x62c]
lea ecx, [esi - 0xc]
cmp ecx, dword [0x10095a00]
je 0x10003605
add esi, 0xfffffff4
push esi
call edi
test eax, eax
jg 0x10003605
push esi
call fcn.10066c8a
add esp, 4
mov eax, dword [ebp - 0x644]
jmp 0x10003ae4
mov edi, dword [sym.imp.KERNEL32.dll_lstrlenW]
lea edx, [ebp - 0x420]
push edx
call edi
lea ecx, [ebp - 0x420]
push ecx
mov ebx, eax
lea esi, [ebp - 0x62c]
call fcn.10004f10
mov edx, dword [ebp - 0x62c]
mov eax, dword [edx - 8]
test eax, eax
jle 0x1000364f
mov ecx, edx
cmp word [ecx + eax*2 - 2], 0x5c
je 0x1000364f
call fcn.10003150
push 0x10082564
call edi
test eax, eax
je 0x1000366a
push 0x10082564
lea ecx, [ebp - 0x62c]
call fcn.100031e0
lea edx, [ebp - 0x62c]
push edx
lea eax, [ebp - 0x630]
push eax
mov ecx, str.profiles.ini
call fcn.10003340
mov edi, eax
lea eax, [ebp - 0x640]
mov byte [ebp - 4], 3
call fcn.10003400
mov byte [ebp - 4], 2
mov eax, dword [ebp - 0x630]
lea ecx, [eax - 0xc]
cmp ecx, dword [0x10095a00]
je 0x100036c8
add eax, 0xfffffff4
push eax
call dword [sym.imp.KERNEL32.dll_InterlockedDecrement]
test eax, eax
jg 0x100036c8
mov eax, dword [ebp - 0x630]
add eax, 0xfffffff4
push eax
call fcn.10066c8a
add esp, 4
mov ebx, dword [ebp - 0x640]
push 0
push 0x80
push 3
push 0
push 1
push SysReAllocString
push ebx
call dword [sym.imp.KERNEL32.dll_CreateFileW]
cmp eax, 0xffffffff
je 0x100038ab
push eax
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov eax, dword [0x10095a04]
mov dword [ebp - 0x630], eax
mov dword [ebp - 0x634], 0
mov dword [ebp - 0x648], eax
lea eax, [ebp - 0x218]
shr eax, 0x10
mov byte [ebp - 4], 5
mov ebx, dword [sym.imp.KERNEL32.dll_GetPrivateProfileStringW]
mov dword [ebp - 0x64c], eax
jmp 0x10003730
mov edx, dword [ebp - 0x634]
push edx
push str.profile_d
lea edx, [ebp - 0x630]
call fcn.10004060
mov eax, dword [ebp - 0x640]
mov edx, dword [ebp - 0x630]
add esp, 8
push eax
push 0x104
lea ecx, [ebp - 0x218]
push ecx
push 0x100824b4
push str.Name
push edx
call ebx
cmp word [ebp - 0x64c], 0
mov esi, dword [0x10095a04]
mov dword [ebp - 0x638], esi
jne 0x10003937
lea eax, [ebp - 0x218]
movzx eax, ax
push eax
lea ecx, [ebp - 0x638]
call fcn.100044d0
mov esi, dword [ebp - 0x638]
lea edi, [esi - 0xc]
mov byte [ebp - 4], 6
cmp dword [edi], 1
jle 0x10003814
add esi, 0xfffffff4
cmp esi, dword [0x10095a00]
je 0x100037dc
push edi
call dword [sym.imp.KERNEL32.dll_InterlockedDecrement]
test eax, eax
jg 0x100037d0
push edi
call fcn.10066c8a
add esp, 4
mov ecx, dword [0x10095a04]
mov dword [ebp - 0x638], ecx
mov ecx, dword [edi + 4]
lea edx, [ebp - 0x638]
call fcn.10004e70
mov esi, dword [ebp - 0x638]
test eax, eax
je 0x10003814
mov eax, dword [edi + 4]
mov ecx, dword [esi - 4]
lea eax, [eax + eax + 2]
lea ecx, [ecx + ecx + 2]
cmp ecx, eax
jb 0x10003814
push eax
add edi, 0xc
push edi
push esi
call fcn.10065820
add esp, 0xc
push esi
call dword [sym.imp.USER32.dll_CharLowerW]
cmp dword [esi - 8], 0
jl 0x10003867
push str.default
push esi
call fcn.10066a5d
add esp, 8
test eax, eax
je 0x10003867
sub eax, esi
sar eax, 1
js 0x10003867
mov edx, dword [ebp - 0x640]
mov ecx, dword [ebp - 0x630]
push edx
push 0x104
lea eax, [ebp - 0x628]
push eax
push 0x100824b4
push str.Path
push ecx
call ebx
test eax, eax
jne 0x1000398d
inc dword [ebp - 0x634]
lea edx, [esi - 0xc]
mov byte [ebp - 4], 5
cmp edx, dword [0x10095a00]
je 0x10003893
add esi, 0xfffffff4
push esi
call dword [sym.imp.KERNEL32.dll_InterlockedDecrement]
test eax, eax
jg 0x10003893
push esi
call fcn.10066c8a
add esp, 4
cmp dword [ebp - 0x634], 0xa
jl 0x10003730
mov edi, dword [sym.imp.KERNEL32.dll_InterlockedDecrement]
jmp 0x10003a1b
mov edi, dword [ebp - 0x644]
lea ecx, [ebp - 0x63c]
mov eax, edi
call fcn.10003b10
mov eax, dword [ebp - 0x63c]
lea edx, [eax - 0xc]
cmp edx, dword [0x10095a00]
je 0x100038e6
lea esi, [eax - 0xc]
push esi
call dword [sym.imp.KERNEL32.dll_InterlockedDecrement]
test eax, eax
jg 0x100038e6
push esi
call fcn.10066c8a
add esp, 4
lea eax, [ebx - 0xc]
cmp eax, dword [0x10095a00]
je 0x10003908
lea esi, [ebx - 0xc]
push esi
call dword [sym.imp.KERNEL32.dll_InterlockedDecrement]
test eax, eax
jg 0x10003908
push esi
call fcn.10066c8a
add esp, 4
mov esi, dword [ebp - 0x62c]
lea ecx, [esi - 0xc]
cmp ecx, dword [0x10095a00]
je 0x10003930
add esi, 0xfffffff4
push esi
call dword [sym.imp.KERNEL32.dll_InterlockedDecrement]
test eax, eax
jg 0x10003930
push esi
call fcn.10066c8a
add esp, 4
mov eax, edi
jmp 0x10003ae4
lea ecx, [ebp - 0x218]
push ecx
call dword [sym.imp.KERNEL32.dll_lstrlenW]
mov edi, eax
test edi, edi
je 0x100037a5
mov ecx, edi
lea edx, [ebp - 0x638]
call fcn.10004e70
test eax, eax
je 0x1000379f
lea eax, [edi + edi]
lea edx, [eax + 2]
cmp edx, eax
jb 0x1000379f
mov esi, dword [ebp - 0x638]
push eax
lea eax, [ebp - 0x218]
push eax
push esi
call fcn.10065820
add esp, 0xc
jmp 0x100037a5
lea eax, [ebp - 0x62c]
push eax
lea ecx, [ebp - 0x634]
push ecx
lea ecx, [ebp - 0x628]
call fcn.10003340
lea eax, [ebp - 0x634]
mov byte [ebp - 4], 7
call fcn.100033c0
lea edi, [ebp - 0x634]
lea eax, [ebp - 0x63c]
call fcn.10003400
mov eax, dword [ebp - 0x634]
mov edi, dword [sym.imp.KERNEL32.dll_InterlockedDecrement]
lea edx, [eax - 0xc]
cmp edx, dword [0x10095a00]
je 0x100039f9
add eax, 0xfffffff4
push eax
call edi
test eax, eax
jg 0x100039f9
mov eax, dword [ebp - 0x634]
add eax, 0xfffffff4
push eax
call fcn.10066c8a
add esp, 4
lea eax, [esi - 0xc]
mov byte [ebp - 4], 5
cmp eax, dword [0x10095a00]
je 0x10003a1b
add esi, 0xfffffff4
push esi
call edi
test eax, eax
jg 0x10003a1b
push esi
call fcn.10066c8a
add esp, 4
mov ebx, dword [ebp - 0x644]
lea ecx, [ebp - 0x63c]
mov eax, ebx
call fcn.10003b10
mov esi, dword [ebp - 0x648]
lea ecx, [esi - 0xc]
cmp ecx, dword [0x10095a00]
je 0x10003a52
add esi, 0xfffffff4
push esi
call edi
test eax, eax
jg 0x10003a52
push esi
call fcn.10066c8a
add esp, 4
mov esi, dword [ebp - 0x630]
lea edx, [esi - 0xc]
cmp edx, dword [0x10095a00]
je 0x10003a76
add esi, 0xfffffff4
push esi
call edi
test eax, eax
jg 0x10003a76
push esi
call fcn.10066c8a
add esp, 4
mov eax, dword [ebp - 0x63c]
lea ecx, [eax - 0xc]
cmp ecx, dword [0x10095a00]
je 0x10003a9a
lea esi, [eax - 0xc]
push esi
call edi
test eax, eax
jg 0x10003a9a
push esi
call fcn.10066c8a
add esp, 4
mov esi, dword [ebp - 0x640]
lea edx, [esi - 0xc]
cmp edx, dword [0x10095a00]
je 0x10003abe
add esi, 0xfffffff4
push esi
call edi
test eax, eax
jg 0x10003abe
push esi
call fcn.10066c8a
add esp, 4
mov esi, dword [ebp - 0x62c]
lea eax, [esi - 0xc]
cmp eax, dword [0x10095a00]
je 0x10003ae2
add esi, 0xfffffff4
push esi
call edi
test eax, eax
jg 0x10003ae2
push esi
call fcn.10066c8a
add esp, 4
mov eax, ebx
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 0x10]
xor ecx, ebp
call fcn.100660ff
mov esp, ebp
pop ebp
ret 4