Function at 0x4022f9
Capabilities:
Identify system language via api

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x6ac
push ebx
push esi
mov esi, ecx
push edi
push 0x40
lea eax, [ebp - 0xbc]
lea edi, [esi + 4]
mov dword [ebp - 0xc], esi
push edi
push eax
mov dword [ebp - 0x7c], esi
call fcn.004072b0
add esp, 0xc
add esi, 0x4c
push str.D:is6Code_5EXTSetup_setup.cpp
push esi
call dword [sym.imp.KERNEL32.dll_lstrcpyA_1]
xor ebx, ebx
push ebx
push edi
call fcn.00407620
pop ecx
cmp eax, ebx
pop ecx
jne 0x402423
call dword [sym.imp.KERNEL32.dll_GetUserDefaultLangID]
mov esi, dword [ebp - 0xc]
push eax
mov ecx, esi
mov word [esi + 0x5a8], ax
call fcn.00405b3b
test al, al
jne 0x4023c9
mov ax, word [esi + 0x5a8]
mov ebx, 0x3ff
and eax, ebx
mov edi, 0x400
or eax, edi
mov ecx, esi
push eax
mov word [esi + 0x5a8], ax
call fcn.00405b3b
test al, al
jne 0x4023c9
mov ecx, esi
call fcn.00405b58
push eax
mov ecx, esi
mov word [esi + 0x5a8], ax
call fcn.00405b3b
test al, al
jne 0x4023c9
mov ax, word [esi + 0x5a8]
mov ecx, esi
and eax, ebx
or eax, edi
push eax
mov word [esi + 0x5a8], ax
call fcn.00405b3b
test al, al
jne 0x4023c9
mov word [esi + 0x5a8], 0x409
cmp byte [esi + 0x229], 0
je 0x4023dd
push 0x45
mov ecx, esi
call fcn.004029a5
jmp 0x4023ef
cmp byte [esi + 0x228], 0
je 0x402418
push 0x48
mov ecx, esi
call fcn.004027b1
push eax
mov ecx, esi
call fcn.00405a4a
mov bl, 1
lea eax, [ebp - 0xbc]
push 0x40
push eax
mov eax, dword [ebp - 0x7c]
add eax, 4
push eax
call fcn.004072b0
add esp, 0xc
mov al, bl
pop edi
pop esi
pop ebx
leave
ret
push 0x4a
mov ecx, esi
call fcn.00402890
jmp 0x4023ef
mov esi, dword [ebp - 0xc]
cmp eax, 0x80042000
je 0x40269f
lea ecx, [ebp - 0x78]
mov dword [ebp - 0x30], ebx
mov dword [ebp - 0x2c], ebx
mov dword [ebp - 4], ebx
call fcn.004026f9
cmp byte [esi + 0x538], 0
mov edi, dword [sym.imp.USER32.dll_wsprintfA]
mov dword [ebp - 0x24], ebx
mov dword [ebp - 0x20], ebx
mov dword [ebp - 0x18], ebx
mov dword [ebp - 0x14], ebx
je 0x4024c6
lea eax, [ebp - 0x2c4]
push 0x104
push eax
push ebx
call dword [sym.imp.KERNEL32.dll_GetModuleFileNameA_1]
lea eax, [ebp - 0x2c4]
lea ecx, [ebp - 0x78]
push eax
call fcn.00407184
mov eax, dword [ebp - 0x68]
movzx ecx, ax
shr eax, 0x10
push ecx
push eax
mov eax, dword [ebp - 0x6c]
movzx ecx, ax
shr eax, 0x10
push ecx
push eax
lea eax, [ebp - 0x1c0]
push str._d._d._d._d
push eax
call edi
add esp, 0x18
lea eax, [ebp - 0x24]
mov ecx, esi
push eax
push 0x9013
call fcn.00405a71
lea eax, [ebp - 0x18]
mov ecx, esi
push eax
push 0x9014
call fcn.00405a71
push ebx
lea eax, [ebp - 4]
push ebx
push eax
push ebx
push dword [esi + 0x44]
push ebx
push 0x1300
call dword [sym.imp.KERNEL32.dll_FormatMessageA]
test eax, eax
je 0x4025ea
cmp byte [esi + 0x538], 0
lea ecx, [esi + 0x580]
je 0x402588
call fcn.00406c28
test eax, eax
lea eax, [ebp - 0x1c0]
lea ecx, [ebp - 0x18]
push eax
lea eax, [esi + 0x4c]
push dword [esi + 0x48]
push eax
jne 0x402548
call fcn.00406c28
push eax
lea ecx, [ebp - 0x24]
push dword [ebp - 4]
call fcn.00406c28
push eax
lea ecx, [esi + 0x574]
push dword [ebp - 4]
call fcn.00406c28
push eax
lea eax, [ebp - 0x6ac]
push str._s_n_n_s_n_n_s_s_s_s___d____s_
push eax
call edi
add esp, 0x28
jmp 0x4025df
call fcn.00406c28
push eax
lea ecx, [ebp - 0x24]
push dword [ebp - 4]
call fcn.00406c28
push eax
lea ecx, [esi + 0x580]
push dword [esi + 0x44]
call fcn.00406c28
push eax
lea ecx, [esi + 0x574]
call fcn.00406c28
push eax
lea eax, [ebp - 0x6ac]
push str._s_n_n_s__0x_x__n_n_s_s_s_s___d____s_
push eax
call edi
add esp, 0x2c
jmp 0x4025df
call fcn.00406c28
test eax, eax
jne 0x4025b3
push dword [ebp - 4]
lea ecx, [esi + 0x574]
call fcn.00406c28
push eax
lea eax, [ebp - 0x6ac]
push str._s_n_n_s
push eax
call edi
add esp, 0x10
jmp 0x4025df
push dword [esi + 0x44]
lea ecx, [esi + 0x580]
call fcn.00406c28
push eax
lea ecx, [esi + 0x574]
call fcn.00406c28
push eax
lea eax, [ebp - 0x6ac]
push str._s_n_n_s__0x_x_
push eax
call edi
add esp, 0x14
push dword [ebp - 4]
call dword [sym.imp.KERNEL32.dll_LocalFree]
jmp 0x40264c
cmp byte [esi + 0x538], 0
je 0x40262c
lea eax, [ebp - 0x1c0]
lea ecx, [ebp - 0x18]
push eax
lea eax, [esi + 0x4c]
push dword [esi + 0x48]
push eax
call fcn.00406c28
push eax
lea ecx, [esi + 0x574]
push dword [esi + 0x44]
call fcn.00406c28
push eax
lea eax, [ebp - 0x6ac]
push str._s__0x_x__n_n_s_s___d____s_
push eax
call edi
add esp, 0x20
jmp 0x40264c
push dword [esi + 0x44]
lea ecx, [esi + 0x574]
call fcn.00406c28
push eax
lea eax, [ebp - 0x6ac]
push str._s__0x_x_
push eax
call edi
add esp, 0x10
lea eax, [esi + 0x270]
push 0x10
push eax
lea eax, [ebp - 0x6ac]
push eax
push ebx
call dword [sym.imp.USER32.dll_MessageBoxA_1]
lea ecx, [ebp - 0x14]
call fcn.004016cb
push dword [ebp - 0x18]
mov edi, dword [sym.imp.OLEAUT32.dll_SysStringLen]
call edi
lea ecx, [ebp - 0x20]
call fcn.004016cb
push dword [ebp - 0x24]
call edi
lea ecx, [ebp - 0x78]
mov dword [ebp - 0x78], 0x408250
call fcn.00402756
lea ecx, [ebp - 0x2c]
call fcn.004016cb
push dword [ebp - 0x30]
call edi
mov eax, dword [esi + 0x560]
cmp eax, ebx
je 0x4026bd
mov dword [esi + 0x570], 5
mov ecx, dword [eax]
push esi
push eax
call dword [ecx + 0xac]
mov esi, dword [esi + 0x56c]
cmp esi, ebx
je 0x4026f2
lea ecx, [ebp - 8]
mov dword [ebp - 8], ebx
mov eax, dword [esi]
push ecx
push 0x40a1b0
push esi
call dword [eax]
test eax, eax
jl 0x4026e5
mov eax, dword [ebp - 8]
push eax
mov ecx, dword [eax]
call dword [ecx + 0x10]
mov eax, dword [ebp - 8]
cmp eax, ebx
je 0x4026f2
mov ecx, dword [eax]
push eax
call dword [ecx + 8]
xor bl, bl
jmp 0x4023f9