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

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x410
mov eax, dword [0x57c870]
xor eax, ebp
mov dword [ebp - 4], eax
call dword [sym.imp.KERNEL32.dll_GetSystemDefaultLangID]
mov word [0x5f660c], ax
call fcn.0046d800
mov word [0x5676fc], ax
movsx eax, word [0x5676fc]
cmp eax, 0xffffffff
je 0x46d911
mov ax, word [0x5676fc]
jmp 0x46dbc0
push 0x50
lea ecx, [ebp - 0x108]
push ecx
call dword [sym.imp.KERNEL32.dll_GetWindowsDirectoryA]
call dword [sym.imp.KERNEL32.dll_GetSystemDefaultLangID]
mov word [0x5676fc], ax
movsx edx, word [0x5676fc]
and edx, 0xff
mov dword [ebp - 0x40c], edx
mov eax, dword [ebp - 0x40c]
sub eax, 1
mov dword [ebp - 0x40c], eax
cmp dword [ebp - 0x40c], 0x1e
ja case.0x46d968.1
mov ecx, dword [ebp - 0x40c]
movzx edx, byte [ecx + 0x46dc00]
jmp dword [edx*4 + 0x46dbd0]
mov eax, 0x401
mov word [0x5676fc], ax
jmp case.0x46d968.1
mov ecx, 0x406
mov word [0x5676fc], cx
jmp case.0x46d968.1
mov edx, 0x407
mov word [0x5676fc], dx
jmp case.0x46d968.1
mov eax, 0x409
mov word [0x5676fc], ax
jmp case.0x46d968.1
mov ecx, 0x40a
mov word [0x5676fc], cx
jmp case.0x46d968.1
mov edx, 0x40c
mov word [0x5676fc], dx
jmp case.0x46d968.1
mov eax, 0x410
mov word [0x5676fc], ax
jmp case.0x46d968.1
mov ecx, 0x411
mov word [0x5676fc], cx
jmp case.0x46d968.1
mov edx, 0x412
mov word [0x5676fc], dx
jmp case.0x46d968.1
mov eax, 0x41e
mov word [0x5676fc], ax
jmp case.0x46d968.1
mov ecx, 0x41f
mov word [0x5676fc], cx
movsx edx, word [0x5676fc]
mov dword [ebp - 0x410], edx
cmp dword [ebp - 0x410], 0x83e
jg 0x46da61
cmp dword [ebp - 0x410], 0x83e
je 0x46db11
mov eax, dword [ebp - 0x410]
sub eax, 0x807
mov dword [ebp - 0x410], eax
cmp dword [ebp - 0x410], 0xf
ja case.0x46da5a.1
mov ecx, dword [ebp - 0x410]
movzx edx, byte [ecx + 0x46dc34]
jmp dword [edx*4 + 0x46dc20]
cmp dword [ebp - 0x410], 0xc0c
jg 0x46da96
cmp dword [ebp - 0x410], 0xc0c
je 0x46dab1
cmp dword [ebp - 0x410], 0xc07
je 0x46dada
cmp dword [ebp - 0x410], 0xc0a
je 0x46db03
jmp case.0x46da5a.1
cmp dword [ebp - 0x410], 0x100c
je 0x46dabf
jmp case.0x46da5a.1
mov eax, 0x40c
mov word [0x5676fc], ax
jmp case.0x46da5a.1
mov ecx, 0x40c
mov word [0x5676fc], cx
jmp case.0x46da5a.1
mov edx, 0x40c
mov word [0x5676fc], dx
jmp case.0x46da5a.1
mov eax, 0x407
mov word [0x5676fc], ax
jmp case.0x46da5a.1
mov ecx, 0x407
mov word [0x5676fc], cx
jmp case.0x46da5a.1
mov edx, 0x416
mov word [0x5676fc], dx
jmp case.0x46da5a.1
mov eax, 0x40a
mov word [0x5676fc], ax
jmp case.0x46da5a.1
mov ecx, 0x40a
mov word [0x5676fc], cx
jmp case.0x46da5a.1
mov edx, 0x43e
mov word [0x5676fc], dx
movsx eax, word [0x5676fc]
cmp eax, 0x409
jne 0x46db8d
lea ecx, [ebp - 0x108]
push ecx
push 0x567bbc
lea edx, [ebp - 0x408]
push edx
call fcn.00532706
add esp, 0xc
lea eax, [ebp - 0x408]
push eax
push 0xff
lea ecx, [ebp - 0x208]
push ecx
push 0x5f660f
push 0x567bc8
push 0x567bd4
call dword [sym.imp.KERNEL32.dll_GetPrivateProfileStringA]
push 0x567bdc
lea edx, [ebp - 0x208]
push edx
call fcn.0053617f
add esp, 8
test eax, eax
jne 0x46db8d
mov eax, 0x41e
jmp 0x46dbc0
movsx eax, word [0x5676fc]
push eax
push str.OS_Value:__x
lea ecx, [ebp - 0x108]
push ecx
call fcn.00532706
add esp, 0xc
lea edx, [ebp - 0x108]
push edx
push 2
call fcn.00436500
add esp, 8
mov ax, word [0x5676fc]
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.00532783
mov esp, ebp
pop ebp
ret