Function at 0x402200
Capabilities:
Identify system language via api

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x444
push ebx
push esi
mov esi, ecx
push edi
push 0x40
lea eax, [ebp - 0x5c]
lea edi, [esi + 4]
mov dword [ebp - 0xc], esi
push edi
push eax
mov dword [ebp - 0x1c], esi
call fcn.00404f80
add esp, 0xc
add esi, 0x4c
push 0x4071d8
push esi
call dword [sym.imp.KERNEL32.dll_lstrcpyA]
xor ebx, ebx
push ebx
push edi
call fcn.004052f0
pop ecx
cmp eax, ebx
pop ecx
jne 0x402324
call dword [sym.imp.KERNEL32.dll_GetUserDefaultLangID]
mov esi, dword [ebp - 0xc]
push eax
mov ecx, esi
mov word [esi + 0x580], ax
call fcn.00404530
test al, al
jne 0x4022cd
mov ax, word [esi + 0x580]
mov ebx, 0x3ff
and eax, ebx
mov edi, 0x400
or eax, edi
mov ecx, esi
push eax
mov word [esi + 0x580], ax
call fcn.00404530
test al, al
jne 0x4022cd
mov ecx, esi
call fcn.0040454d
push eax
mov ecx, esi
mov word [esi + 0x580], ax
call fcn.00404530
test al, al
jne 0x4022cd
mov ax, word [esi + 0x580]
mov ecx, esi
and eax, ebx
or eax, edi
push eax
mov word [esi + 0x580], ax
call fcn.00404530
test al, al
jne 0x4022cd
mov word [esi + 0x580], 0x409
cmp byte [esi + 0x229], 0
je 0x4022e1
push 0x42
mov ecx, esi
call fcn.0040268a
jmp 0x4022f3
cmp byte [esi + 0x228], 0
je 0x402319
push 0x45
mov ecx, esi
call fcn.00402496
push eax
mov ecx, esi
call fcn.0040443f
mov bl, 1
lea eax, [ebp - 0x5c]
push 0x40
push eax
mov eax, dword [ebp - 0x1c]
add eax, 4
push eax
call fcn.00404f80
add esp, 0xc
mov al, bl
pop edi
pop esi
pop ebx
leave
ret
push 0x47
mov ecx, esi
call fcn.00402575
jmp 0x4022f3
mov esi, dword [ebp - 0xc]
cmp eax, 0x80042000
je 0x40243c
push ebx
lea eax, [ebp - 4]
push ebx
push eax
push ebx
mov dword [ebp - 0x18], ebx
push dword [esi + 0x44]
mov dword [ebp - 0x14], ebx
mov dword [ebp - 4], ebx
push ebx
push 0x1300
call dword [sym.imp.KERNEL32.dll_FormatMessageA]
test eax, eax
je 0x4023ba
cmp byte [esi + 0x538], 0
je 0x40238b
push dword [esi + 0x48]
lea eax, [esi + 0x4c]
lea ecx, [esi + 0x574]
push eax
push dword [ebp - 4]
call fcn.00404a3b
push eax
lea eax, [ebp - 0x444]
push 0x4071c8
push eax
call dword [sym.imp.USER32.dll_wsprintfA]
add esp, 0x18
jmp 0x4023af
push dword [ebp - 4]
lea ecx, [esi + 0x574]
call fcn.00404a3b
push eax
lea eax, [ebp - 0x444]
push 0x4071c0
push eax
call dword [sym.imp.USER32.dll_wsprintfA]
add esp, 0x10
push dword [ebp - 4]
call dword [sym.imp.KERNEL32.dll_LocalFree]
jmp 0x402414
cmp byte [esi + 0x538], 0
je 0x4023f0
push dword [esi + 0x48]
lea eax, [esi + 0x4c]
lea ecx, [esi + 0x574]
push eax
push dword [esi + 0x44]
call fcn.00404a3b
push eax
lea eax, [ebp - 0x444]
push 0x4071ac
push eax
call dword [sym.imp.USER32.dll_wsprintfA]
add esp, 0x18
jmp 0x402414
push dword [esi + 0x44]
lea ecx, [esi + 0x574]
call fcn.00404a3b
push eax
lea eax, [ebp - 0x444]
push 0x4071a0
push eax
call dword [sym.imp.USER32.dll_wsprintfA]
add esp, 0x10
lea eax, [esi + 0x270]
push 0x30
push eax
lea eax, [ebp - 0x444]
push eax
push ebx
call dword [sym.imp.USER32.dll_MessageBoxA]
lea ecx, [ebp - 0x14]
call fcn.004016a4
push dword [ebp - 0x18]
call dword [sym.imp.OLEAUT32.dll_SysStringLen]
mov eax, dword [esi + 0x560]
cmp eax, ebx
je 0x40245a
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 0x40248f
lea ecx, [ebp - 8]
mov dword [ebp - 8], ebx
mov eax, dword [esi]
push ecx
push 0x407190
push esi
call dword [eax]
test eax, eax
jl 0x402482
mov eax, dword [ebp - 8]
push eax
mov ecx, dword [eax]
call dword [ecx + 0x10]
mov eax, dword [ebp - 8]
cmp eax, ebx
je 0x40248f
mov ecx, dword [eax]
push eax
call dword [ecx + 8]
xor bl, bl
jmp 0x4022fd