Function at 0x41cbd0
Capabilities:
Get common file path
Get geographical location
Get startup folder
Identify system language via api

Disassembly:
push ebp
mov ebp, esp
mov eax, dword fs:[0]
push 0xffffffffffffffff
push 0x4cf4b8
push eax
mov dword fs:[0], esp
sub esp, 0x73c
call fcn.00414240
cmp dword [eax + 0x38], 8
jb 0x41cbfe
mov ecx, dword [eax + 0x24]
jmp 0x41cc01
lea ecx, [eax + 0x24]
push 0xb
push str.SHADOWARENA
push dword [eax + 0x34]
push ecx
call fcn.00416440
add esp, 0x10
test eax, eax
jne 0x41d004
push esi
lea eax, [ebp - 0x348]
push eax
push 0
push 0
push 0x8005
push 0
call dword [sym.imp.SHELL32.dll_SHGetFolderPathW]
mov esi, dword [sym.imp.SHLWAPI.dll_PathAppendW]
lea eax, [ebp - 0x348]
push str.Shadow_Arena_
push eax
call esi
push str.GameOption.txt
lea eax, [ebp - 0x348]
push eax
call esi
xor eax, eax
mov dword [ebp - 0x30], 0
mov dword [ebp - 0x2c], 0
mov dword [ebp - 0x2c], 7
mov dword [ebp - 0x30], 0
mov word [ebp - 0x40], ax
cmp word [ebp - 0x348], ax
jne 0x41cc86
xor ecx, ecx
jmp 0x41cc9f
lea ecx, [ebp - 0x348]
lea edx, [ecx + 2]
nop
mov ax, word [ecx]
add ecx, 2
test ax, ax
jne 0x41cc90
sub ecx, edx
sar ecx, 1
push ecx
lea eax, [ebp - 0x348]
push eax
lea ecx, [ebp - 0x40]
call fcn.004096c0
mov dword [ebp - 4], 0
lea eax, [ebp - 0x40]
cmp dword [ebp - 0x2c], 8
push 0x4d5710
cmovae eax, dword [ebp - 0x40]
push eax
lea eax, [ebp - 0x10]
mov dword [ebp - 0x10], 0
push eax
call fcn.004a77d8
mov eax, dword [ebp - 0x10]
add esp, 0xc
test eax, eax
jne 0x41ce4f
push 0x64
lea eax, [ebp - 0x108]
push eax
push 0x59
call dword [sym.imp.KERNEL32.dll_GetUserDefaultLangID]
movzx eax, ax
push eax
call dword [sym.imp.KERNEL32.dll_GetLocaleInfoW]
push 0x4d58c8
lea ecx, [ebp - 0x28]
call fcn.00403840
mov byte [ebp - 4], 1
mov ecx, 0x4d5940
lea eax, [ebp - 0x108]
nop dword [eax]
mov dx, word [eax]
cmp dx, word [ecx]
jne 0x41cd46
test dx, dx
je 0x41cd42
mov dx, word [eax + 2]
cmp dx, word [ecx + 2]
jne 0x41cd46
add eax, 4
add ecx, 4
test dx, dx
jne 0x41cd20
xor eax, eax
jmp 0x41cd4b
sbb eax, eax
or eax, 1
test eax, eax
jne 0x41cd59
push 0x4d58c0
jmp 0x41cdd9
mov ecx, 0x4d5948
lea eax, [ebp - 0x108]
mov dx, word [eax]
cmp dx, word [ecx]
jne 0x41cd8a
test dx, dx
je 0x41cd86
mov dx, word [eax + 2]
cmp dx, word [ecx + 2]
jne 0x41cd8a
add eax, 4
add ecx, 4
test dx, dx
jne 0x41cd64
xor eax, eax
jmp 0x41cd8f
sbb eax, eax
or eax, 1
test eax, eax
jne 0x41cd9a
push 0x4d5908
jmp 0x41cdd9
mov ecx, 0x4d5f38
lea eax, [ebp - 0x108]
mov dx, word [eax]
cmp dx, word [ecx]
jne 0x41cdcb
test dx, dx
je 0x41cdc7
mov dx, word [eax + 2]
cmp dx, word [ecx + 2]
jne 0x41cdcb
add eax, 4
add ecx, 4
test dx, dx
jne 0x41cda5
xor eax, eax
jmp 0x41cdd0
sbb eax, eax
or eax, 1
test eax, eax
jne 0x41cde1
push 0x4d5930
lea ecx, [ebp - 0x28]
call fcn.0041ade0
cmp dword [ebp - 0x14], 8
lea esi, [ebp - 0x28]
push edi
cmovae esi, dword [ebp - 0x28]
call fcn.00414240
cmp word [esi], 0
mov edi, eax
jne 0x41cdfe
xor ecx, ecx
jmp 0x41ce12
mov ecx, esi
lea edx, [ecx + 2]
mov ax, word [ecx]
add ecx, 2
test ax, ax
jne 0x41ce03
sub ecx, edx
sar ecx, 1
push ecx
push esi
lea ecx, [edi + 0x54]
call fcn.004096c0
mov byte [ebp - 4], 0
mov eax, dword [ebp - 0x14]
pop edi
cmp eax, 8
jb 0x41ce36
inc eax
lea ecx, [ebp - 0x28]
push eax
push dword [ebp - 0x28]
call fcn.00409d20
xor eax, eax
mov dword [ebp - 0x14], 7
mov dword [ebp - 0x18], 0
mov word [ebp - 0x28], ax
jmp 0x41cfd3
push 0x100
lea ecx, [ebp - 0x140]
push ecx
push 0x4d5714
push eax
call fcn.00419a60
add esp, 0x10
cmp eax, 0xffffffff
je 0x41cfc3
push 0x100
lea eax, [ebp - 0x748]
push eax
push 0x4d571c
push dword [ebp - 0x10]
call fcn.00419a60
add esp, 0x10
cmp eax, 0xffffffff
je 0x41cfc3
lea eax, [ebp - 0x748]
push eax
call fcn.004b1a39
add esp, 4
mov dword [ebp - 0x18], 0
cmp byte [ebp - 0x140], 0
mov esi, eax
mov dword [ebp - 0x14], 0
mov dword [ebp - 0x14], 0xf
mov dword [ebp - 0x18], 0
mov byte [ebp - 0x28], 0
jne 0x41ced5
xor ecx, ecx
jmp 0x41cee9
lea ecx, [ebp - 0x140]
lea edx, [ecx + 1]
nop
mov al, byte [ecx]
inc ecx
test al, al
jne 0x41cee0
sub ecx, edx
push ecx
lea eax, [ebp - 0x140]
push eax
lea ecx, [ebp - 0x28]
call fcn.00409400
mov byte [ebp - 4], 2
lea eax, [ebp - 0x28]
push str.LauncherResourceType
push eax
call fcn.00419e50
add esp, 8
test al, al
jne 0x41cf63
mov byte [ebp - 4], al
mov eax, dword [ebp - 0x14]
cmp eax, 0x10
jb 0x41cf2a
inc eax
lea ecx, [ebp - 0x28]
push eax
push dword [ebp - 0x28]
call fcn.00409cd0
push 0x100
lea eax, [ebp - 0x140]
mov dword [ebp - 0x14], 0xf
push eax
push 0x4d5714
push dword [ebp - 0x10]
mov dword [ebp - 0x18], 0
mov byte [ebp - 0x28], 0
call fcn.00419a60
add esp, 0x10
cmp eax, 0xffffffff
jne 0x41ce72
jmp 0x41cfc3
sub esi, 1
je 0x41cf87
sub esi, 3
je 0x41cf80
sub esi, 1
je 0x41cf79
push 0x4d58c8
jmp 0x41cf8c
push 0x4d5908
jmp 0x41cf8c
push 0x4d58d0
jmp 0x41cf8c
push 0x4d58c0
call fcn.00414240
mov ecx, eax
call fcn.00419e00
mov byte [ebp - 4], 0
mov eax, dword [ebp - 0x14]
cmp eax, 0x10
jb 0x41cfb1
inc eax
lea ecx, [ebp - 0x28]
push eax
push dword [ebp - 0x28]
call fcn.00409cd0
mov dword [ebp - 0x14], 0xf
mov dword [ebp - 0x18], 0
mov byte [ebp - 0x28], 0
mov eax, dword [ebp - 0x10]
test eax, eax
je 0x41cfd3
push eax
call fcn.004b1ad9
add esp, 4
mov dword [ebp - 4], 0xffffffff
mov eax, dword [ebp - 0x2c]
pop esi
cmp eax, 8
jb 0x41cff0
inc eax
lea ecx, [ebp - 0x40]
push eax
push dword [ebp - 0x40]
call fcn.00409d20
xor eax, eax
mov dword [ebp - 0x2c], 7
mov dword [ebp - 0x30], 0
mov word [ebp - 0x40], ax
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
mov esp, ebp
pop ebp
ret