Function at 0x421e40
Capabilities:
Identify system language via api

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x450c40
mov eax, dword fs:[0]
push eax
sub esp, 0x24c
mov eax, dword [0x46718c]
xor eax, ebp
mov dword [ebp - 0x10], eax
push ebx
push esi
push edi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
push 0
call dword [sym.imp.KERNEL32.dll_GetModuleHandleW]
mov ebx, eax
mov dword [ebp - 0x21c], 0
mov dword [ebp - 0x220], ebx
call fcn.0043c2f9
mov edi, dword [eax]
add edi, 4
mov esi, dword [edi]
test esi, esi
je 0x421fb5
mov ebx, edi
nop
mov ecx, esi
lea edx, [ecx + 2]
mov ax, word [ecx]
add ecx, 2
test ax, ax
jne 0x421ea5
sub ecx, edx
sar ecx, 1
cmp ecx, 1
jbe 0x421ee9
movzx eax, word [esi]
mov ecx, eax
cmp eax, 0x2d
je 0x421ec8
cmp ecx, 0x2f
jne 0x421ee9
lea eax, [esi + 2]
push 0x460714
push eax
lfence
call fcn.00430903
add esp, 8
test eax, eax
sete al
test al, al
jne 0x421f6e
mov dword [ebp - 0x21c], ebx
mov edx, str.language
test esi, esi
je 0x421f56
mov ecx, esi
lea ebx, [ecx + 2]
nop dword [eax]
mov ax, word [ecx]
add ecx, 2
test ax, ax
jne 0x421f00
sub ecx, ebx
sar ecx, 1
cmp ecx, 2
jbe 0x421f56
cmp word [esi], 0x2d
jne 0x421f56
cmp word [esi + 2], 0x2d
jne 0x421f56
lfence
cmp word [str.language], 0x2d
jne 0x421f40
cmp word [0x4605e6], 0x2d
mov eax, 0x4605e8
cmovne eax, edx
mov edx, eax
push edx
lea eax, [esi + 4]
push eax
call fcn.00430903
add esp, 8
test eax, eax
sete al
test al, al
jne 0x421f68
mov esi, dword [edi + 4]
add edi, 4
mov ebx, edi
test esi, esi
jne 0x421ea0
jmp 0x421f70
mov ebx, dword [ebp - 0x21c]
mov esi, dword [ebx]
mov ebx, dword [ebp - 0x220]
test esi, esi
je 0x421fb5
mov esi, dword [edi + 4]
test esi, esi
je 0x421fb5
push 0x2c
lea eax, [ebp - 0x258]
push 0
push eax
call fcn.0042d3d0
add esp, 0xc
lea ecx, [ebp - 0x258]
mov edx, esi
call fcn.00428290
test al, al
je 0x421fb5
mov esi, dword [ebp - 0x258]
mov dword [ebp - 0x21c], esi
test esi, esi
jne 0x422004
push 0x208
lea eax, [ebp - 0x218]
push 0
push eax
call fcn.0042d3d0
add esp, 0xc
lea eax, [ebp - 0x218]
push 0x104
push eax
push ebx
call dword [sym.imp.KERNEL32.dll_GetModuleFileNameW]
lea ecx, [ebp - 0x218]
call fcn.00428740
mov esi, eax
mov dword [ebp - 0x21c], esi
test esi, esi
jne 0x422004
call dword [sym.imp.KERNEL32.dll_GetUserDefaultLangID]
movzx esi, ax
mov dword [ebp - 0x21c], esi
push esi
push 7
push 6
push ebx
call dword [sym.imp.KERNEL32.dll_FindResourceExW]
test eax, eax
jne 0x42209e
mov dword [ebp - 0x22c], eax
mov dword [ebp - 0x228], eax
mov dword [ebp - 0x224], eax
mov dword [ebp - 4], eax
lea eax, [ebp - 0x22c]
push eax
push 0x4220d0
push 7
push 6
push ebx
call dword [sym.imp.KERNEL32.dll_EnumResourceLanguagesW]
lea edx, [ebp - 0x21c]
lea ecx, [ebp - 0x22c]
call fcn.00428450
mov esi, dword [ebp - 0x21c]
test al, al
mov edx, dword [ebp - 0x22c]
mov ecx, 0x409
cmove esi, ecx
test edx, edx
je 0x42209e
mov ecx, dword [ebp - 0x224]
mov eax, edx
sub ecx, edx
and ecx, 0xfffffffc
cmp ecx, 0x1000
jb 0x422094
mov edx, dword [eax - 4]
add ecx, 0x23
sub eax, edx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x4220bc
push ecx
push edx
call fcn.0042acd3
add esp, 8
mov eax, esi
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 0x10]
xor ecx, ebp
call fcn.0042ac9b
mov esp, ebp
pop ebp
ret
call fcn.00430704
int3