Function at 0x10383716
Capabilities:
Identify system language via api
Read .ini file

Disassembly:
mov eax, 0x103f0ae7
call fcn.1039fd54
sub esp, 0x8b8
push ebx
mov ebx, ecx
xor eax, eax
cmp dword [ebp + 8], eax
push edi
lea edi, [ebx + 0x410]
mov dword [ebp - 0x10], ebx
mov dword [ebx + 0x620], 1
mov word [ebx], ax
mov word [edi], ax
jne 0x10383758
push 0x64
pop eax
mov dword [ebx + 0x620], eax
jmp 0x10383cea
push esi
push 0x103fdf00
push dword [ebp + 8]
call fcn.103a3efb
mov esi, eax
test esi, esi
pop ecx
pop ecx
mov dword [ebp - 0x14], esi
jne 0x10383778
push 0x65
jmp 0x10383ce2
and dword [ebp - 0x1c], 0
lea eax, [ebp - 0x1c]
push eax
push edi
push 0x104
push dword [ebp + 8]
call dword [sym.imp.KERNEL32.dll_GetFullPathNameW]
test eax, eax
jbe 0x103837e7
push dword [ebp - 0x1c]
push ebx
call fcn.103a3f38
mov eax, dword [ebp - 0x1c]
test eax, eax
pop ecx
pop ecx
je 0x103837d8
sub eax, ebx
mov esi, 0x410
sub eax, esi
sar eax, 1
push eax
lea eax, [ebx + 0x208]
push edi
push eax
call fcn.103a471a
mov eax, dword [ebp - 0x1c]
sub eax, ebx
sub eax, esi
mov esi, dword [ebp - 0x14]
sar eax, 1
add esp, 0xc
and word [ebx + eax*2 + 0x208], 0
jmp 0x103837e7
lea eax, [ebx + 0x208]
push edi
push eax
call fcn.103a3f38
pop ecx
pop ecx
test byte [esi + 0xc], 0x10
jne 0x10383ce0
push 2
push 0
push esi
call fcn.103a3413
push esi
call fcn.103a3343
push dword [ebp - 0x14]
mov esi, eax
call fcn.103a13e3
add esp, 0x14
push esi
push edi
mov ecx, ebx
call fcn.10383407
lea ebx, [esi + esi]
lea eax, [ebx + 2]
push eax
call fcn.103a44cc
and word [ebp - 0x144], 0
and word [ebp - 0x2c4], 0
mov dword [ebp + 8], eax
push 0x3f
xor eax, eax
pop ecx
lea edi, [ebp - 0x142]
rep stosd dword es:[edi], eax
stosw word es:[edi], ax
push 0x3f
xor eax, eax
pop ecx
lea edi, [ebp - 0x2c2]
rep stosd dword es:[edi], eax
stosw word es:[edi], ax
mov edi, dword [ebp + 8]
mov ecx, ebx
mov edx, ecx
shr ecx, 2
xor eax, eax
rep stosd dword es:[edi], eax
mov ecx, edx
and ecx, 3
rep stosb byte es:[edi], al
mov eax, dword [ebp - 0x10]
add eax, 0x410
push eax
push esi
push dword [ebp + 8]
mov dword [ebp - 0x14], eax
call fcn.103840e6
add esp, 0x10
lea ecx, [ebp - 0x30]
call fcn.10383376
push dword [ebp + 8]
and dword [ebp - 4], 0
lea ecx, [ebp - 0x30]
call fcn.1038331d
push dword [ebp + 8]
call fcn.1039fcc6
and dword [ebp + 8], 0
pop ecx
lea ecx, [ebp - 0x30]
call fcn.10383351
test eax, eax
jle 0x103839b5
mov esi, dword [sym.imp.KERNEL32.dll_GetPrivateProfileStringW]
push dword [ebp - 0x14]
lea eax, [ebp - 0x1c4]
push 0x100
push eax
mov edi, str.0x00
push edi
push str.LANGUAGE
push dword [ebp + 8]
lea ecx, [ebp - 0x30]
call fcn.10383355
push eax
call esi
push dword [ebp - 0x14]
lea eax, [ebp - 0x8c4]
push 0x400
push eax
push edi
push 0x10423f6c
push dword [ebp + 8]
lea ecx, [ebp - 0x30]
call fcn.10383355
push eax
call esi
mov edi, dword [ebp - 0x10]
cmp dword [edi + 0x624], 0
jle 0x10383935
push 0x10
lea eax, [ebp - 0x1c4]
push 0
push eax
call fcn.103a4162
add esp, 0xc
cmp dword [edi + 0x624], eax
jne 0x103839a1
push dword [ebp + 8]
lea ecx, [ebp - 0x30]
jmp 0x1038397f
call dword [sym.imp.KERNEL32.dll_GetUserDefaultLangID]
movzx eax, ax
mov edi, eax
shr eax, 0xa
push 0x10
mov dword [ebp - 0x18], eax
lea eax, [ebp - 0x1c4]
push 0
push eax
and edi, 0x3ff
call fcn.103a4162
add esp, 0xc
cmp edi, eax
jne 0x103839a1
mov ecx, dword [ebp - 0x10]
lea eax, [ebp - 0x8c4]
push eax
push dword [ebp - 0x18]
call fcn.103835fd
test al, al
push dword [ebp + 8]
lea ecx, [ebp - 0x30]
je 0x1038398d
call fcn.10383355
push eax
lea eax, [ebp - 0x144]
jmp 0x10383999
call fcn.10383355
push eax
lea eax, [ebp - 0x2c4]
push eax
call fcn.103a3f38
pop ecx
pop ecx
inc dword [ebp + 8]
lea ecx, [ebp - 0x30]
call fcn.10383351
cmp dword [ebp + 8], eax
jl 0x103838bb
lea eax, [ebp - 0x144]
push eax
call fcn.103a071a
test eax, eax
pop ecx
ja 0x103839f3
lea eax, [ebp - 0x2c4]
push eax
call fcn.103a071a
test eax, eax
pop ecx
ja 0x103839de
push 0x1041f484
jmp 0x103839e5
lea eax, [ebp - 0x2c4]
push eax
lea eax, [ebp - 0x144]
push eax
call fcn.103a3f38
pop ecx
pop ecx
lea edi, [ebx + 2]
push edi
call fcn.103a44cc
mov esi, eax
mov ecx, edi
mov edx, ecx
xor eax, eax
shr ecx, 2
mov edi, esi
rep stosd dword es:[edi], eax
mov ecx, edx
and ecx, 3
rep stosb byte es:[edi], al
mov eax, dword [ebp - 0x10]
add eax, 0x410
push eax
push ebx
lea eax, [ebp - 0x144]
push esi
push eax
call fcn.103841ea
add esp, 0x14
lea ecx, [ebp - 0x44]
call fcn.10383376
push esi
lea ecx, [ebp - 0x44]
mov byte [ebp - 4], 1
call fcn.1038331d
push esi
call fcn.1039fcc6
and dword [ebp + 8], 0
pop ecx
lea ecx, [ebp - 0x44]
call fcn.10383351
test eax, eax
jle 0x10383cbd
push dword [ebp + 8]
lea ecx, [ebp - 0x44]
call fcn.10383355
push 0x3d
push eax
mov dword [ebp - 0x18], eax
call fcn.103a4678
pop ecx
xor edi, edi
test eax, eax
pop ecx
mov dword [ebp - 0x14], eax
je 0x10383a94
and word [eax], di
mov ecx, dword [ebp - 0x10]
inc eax
inc eax
inc edi
mov dword [ebp - 0x14], eax
mov dword [ecx + 0x620], edi
jmp 0x10383b65
inc edi
jmp 0x10383b65
push 0x5c
push eax
call fcn.103a4678
mov ebx, eax
test ebx, ebx
pop ecx
pop ecx
je 0x10383b6d
push ebx
mov esi, ebx
call fcn.103a071a
test eax, eax
pop ecx
jbe 0x10383abe
lea esi, [ebx + 2]
movzx eax, word [esi]
cmp eax, 0x62
jg 0x10383b0a
je 0x10383b03
cmp eax, 0x22
je 0x10383afc
cmp eax, 0x27
je 0x10383af5
cmp eax, 0x30
je 0x10383aef
cmp eax, 0x5c
je 0x10383ae8
cmp eax, 0x61
jne 0x10383b21
mov word [esi], 7
jmp 0x10383b5a
mov word [esi], 0x5c
jmp 0x10383b5a
and word [esi], 0
jmp 0x10383b5a
mov word [esi], 0x27
jmp 0x10383b5a
mov word [esi], 0x22
jmp 0x10383b5a
mov word [esi], 8
jmp 0x10383b5a
sub eax, 0x66
je 0x10383b55
sub eax, 8
je 0x10383b3a
sub eax, 4
je 0x10383b33
dec eax
dec eax
je 0x10383b2c
dec eax
dec eax
je 0x10383b25
xor eax, eax
jmp 0x10383b61
mov word [esi], 0xb
jmp 0x10383b5a
mov word [esi], 9
jmp 0x10383b5a
mov word [esi], 0xd
jmp 0x10383b5a
push 0x10423f18
push esi
call fcn.103a4179
test eax, eax
pop ecx
pop ecx
mov word [esi], 0xa
jne 0x10383b5a
push 3
pop eax
jmp 0x10383b5c
mov word [esi], 0xc
mov eax, edi
mov word [ebx], 0x20
lea eax, [ebx + eax*2 + 2]
test eax, eax
jne 0x10383a9a
and word [ebp - 0x6c4], 0
mov esi, dword [ebp - 0x14]
xor eax, eax
mov ecx, 0xff
lea edi, [ebp - 0x6c2]
rep stosd dword es:[edi], eax
push 0x25
push esi
stosw word es:[edi], ax
call fcn.103a4678
mov edi, eax
test edi, edi
pop ecx
pop ecx
je 0x10383c93
push esi
call fcn.103a071a
lea eax, [eax + eax + 0x4000]
push eax
call fcn.103a44cc
mov ebx, eax
test ebx, ebx
pop ecx
pop ecx
je 0x10383c93
and word [ebx], 0
mov eax, edi
sub eax, esi
sar eax, 1
push eax
push esi
push ebx
call fcn.103a46dd
inc edi
inc edi
push 0x25
push edi
call fcn.103a4678
mov esi, eax
add esp, 0x14
test esi, esi
je 0x10383c8d
and word [ebp - 0x6c4], 0
sub eax, edi
sar eax, 1
push eax
lea eax, [ebp - 0x6c4]
push edi
push eax
call fcn.103a46dd
mov eax, dword [ebp - 0x10]
mov ecx, dword [eax + 0x61c]
add esp, 0xc
test ecx, ecx
je 0x10383c2a
lea eax, [ebp - 0x6c4]
push eax
call fcn.10383f43
test eax, eax
je 0x10383c2a
push eax
push ebx
call fcn.103a3f0e
pop ecx
pop ecx
jmp 0x10383c4d
mov edi, 0x10423f68
push edi
push ebx
call fcn.103a3f0e
lea eax, [ebp - 0x6c4]
push eax
push ebx
call fcn.103a3f0e
push edi
push ebx
call fcn.103a3f0e
add esp, 0x18
inc esi
inc esi
je 0x10383c6e
push 0x25
push esi
call fcn.103a4678
mov edi, eax
test edi, edi
pop ecx
pop ecx
jne 0x10383bc0
push esi
push ebx
call fcn.103a3f0e
pop ecx
pop ecx
mov eax, dword [ebp - 0x10]
mov ecx, dword [eax + 0x618]
test ecx, ecx
je 0x10383c84
push ebx
push dword [ebp - 0x18]
call fcn.10383fe2
push ebx
call fcn.1039fcc6
pop ecx
jmp 0x10383ca9
add edi, 0xfffffffe
push edi
jmp 0x10383c66
mov eax, dword [ebp - 0x10]
mov ecx, dword [eax + 0x618]
test ecx, ecx
je 0x10383ca9
push esi
push dword [ebp - 0x18]
call fcn.10383fe2
inc dword [ebp + 8]
lea ecx, [ebp - 0x44]
call fcn.10383351
cmp dword [ebp + 8], eax
jl 0x10383a5c
lea ecx, [ebp - 0x44]
mov byte [ebp - 4], 0
call fcn.103833b2
or dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x30]
call fcn.103833b2
mov eax, dword [ebp - 0x10]
mov eax, dword [eax + 0x620]
jmp 0x10383ce9
push 0x66
pop eax
mov dword [ebx + 0x620], eax
pop esi
mov ecx, dword [ebp - 0xc]
pop edi
pop ebx
mov dword fs:[0], ecx
leave
ret 4