Function at 0x4023cf
Capabilities:
Identify system language via api

Disassembly:
push ebx
xor ebx, ebx
cmp dword [0x410128], ebx
push ebp
push esi
push edi
je 0x40247a
mov esi, 0x4217fc
push 0x104
push esi
push ebx
mov word [0x4217fc], bx
call dword [sym.imp.KERNEL32.dll_GetModuleFileNameW]
push 0x5c
push esi
call sub.MSVCRT.dll_wcsrchr
pop ecx
cmp eax, ebx
pop ecx
je 0x40240b
mov word [eax], bx
mov edi, dword [sym.imp.KERNEL32.dll_lstrcatW]
push 0x4140b4
push esi
call edi
push dword [0x41ff84]
push esi
call edi
push str..ini
push esi
call edi
mov ebp, 0x80
mov edi, dword [sym.imp.KERNEL32.dll_CreateFileW]
push ebx
push ebp
push 3
push ebx
mov ebx, 0x40000000
push 1
push ebx
push esi
call edi
cmp eax, 0xffffffff
je 0x402453
push eax
call dword [sym.imp.KERNEL32.dll_CloseHandle]
jmp 0x40247a
push 0
push ebp
push 4
push 0
push 1
push ebx
push esi
call edi
cmp eax, 0xffffffff
jne 0x40244a
push 0x30
push str.Error_File_access
push esi
call dword [sym.imp.USER32.dll_GetActiveWindow]
push eax
call dword [sym.imp.USER32.dll_MessageBoxW]
mov edi, dword [sym.imp.KERNEL32.dll_GetUserDefaultLangID]
call edi
push 1
and eax, 0x3ff
pop ebx
mov esi, eax
mov dword [0x4217ec], ebx
call edi
push 7
pop ecx
shr ax, 0xa
cmp esi, ecx
jne 0x4024ab
and dword [0x4217ec], 0
jmp 0x4026d5
push 9
pop ebp
cmp esi, ebp
jne 0x4024bd
mov dword [0x4217ec], ebx
jmp 0x4026d5
cmp esi, 0x13
jne 0x4024d1
mov dword [0x4217ec], 2
jmp 0x4026d5
cmp esi, 0x12
jne 0x4024e5
mov dword [0x4217ec], 3
jmp 0x4026d5
push 0xc
pop edi
cmp esi, edi
jne 0x4024fb
mov dword [0x4217ec], 4
jmp 0x4026d5
cmp esi, 0x10
jne 0x40250f
mov dword [0x4217ec], 5
jmp 0x4026d5
cmp esi, 0x15
jne 0x402523
mov dword [0x4217ec], 6
jmp 0x4026d5
cmp esi, 4
jne 0x40253a
mov dword [0x4217ec], 0xb
cmp ax, bx
jmp 0x4026cd
push 8
pop edx
cmp esi, edx
je 0x402694
cmp esi, 0x16
jne 0x402555
mov dword [0x4217ec], ebp
jmp 0x4026d5
push 0xa
pop ecx
cmp esi, ecx
jne 0x40257a
cmp ax, dx
mov dword [0x4217ec], ecx
jne 0x4026d5
mov dword [0x4217ec], 0x1a
jmp 0x4026d5
cmp esi, 0x18
jne 0x40258a
mov dword [0x4217ec], edi
jmp 0x4026d5
push 0x19
pop ecx
cmp esi, ecx
jne 0x4025a0
mov dword [0x4217ec], 0xd
jmp 0x4026d5
cmp esi, 0x4a
jne 0x4025b4
mov dword [0x4217ec], 0xe
jmp 0x4026d5
cmp esi, 0xe
jne 0x4025c8
mov dword [0x4217ec], 0xf
jmp 0x4026d5
push 0x11
pop eax
cmp esi, eax
jne 0x4025de
mov dword [0x4217ec], 0x10
jmp 0x4026d5
cmp esi, 0x29
je 0x4026c3
cmp esi, ebx
jne 0x4025fa
mov dword [0x4217ec], 0x12
jmp 0x4026d5
cmp esi, 0x1a
jne 0x40260e
mov dword [0x4217ec], 0x13
jmp 0x4026d5
push 0x1d
pop eax
cmp esi, eax
jne 0x402624
mov dword [0x4217ec], 0x14
jmp 0x4026d5
cmp esi, 6
jne 0x402638
mov dword [0x4217ec], 0x15
jmp 0x4026d5
push 0x1e
pop edx
cmp esi, edx
jne 0x40264e
mov dword [0x4217ec], 0x16
jmp 0x4026d5
cmp esi, 0x3c
jne 0x40265f
mov dword [0x4217ec], 0x17
jmp 0x4026d5
cmp esi, 0x2a
je 0x4026cf
push 0x22
pop ecx
cmp esi, ecx
jne 0x402677
mov dword [0x4217ec], 0x1b
jmp 0x4026d5
cmp esi, 0x39
jne 0x402688
mov dword [0x4217ec], 0x1c
jmp 0x4026d5
cmp esi, 0x3e
je 0x4026c3
push 0x21
pop eax
cmp esi, eax
jne 0x40269c
mov dword [0x4217ec], edx
jmp 0x4026d5
cmp esi, 0x64
jne 0x4026ad
mov dword [0x4217ec], 0x1f
jmp 0x4026d5
cmp esi, 0xb
jne 0x4026be
mov dword [0x4217ec], 0x20
jmp 0x4026d5
cmp esi, 0x14
jne 0x4026ca
mov dword [0x4217ec], eax
jmp 0x4026d5
cmp esi, 5
jne 0x4026d5
mov dword [0x4217ec], ecx
push dword [0x4217ec]
push 0x41407c
call fcn.00402381
pop ecx
mov dword [0x4217ec], eax
pop ecx
pop edi
pop esi
pop ebp
pop ebx
ret