Function at 0x421289
Capabilities:
Identify system language via api

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x40
mov eax, dword [0x485df0]
xor eax, ebp
mov dword [ebp - 4], eax
mov eax, dword [ebp + 0xc]
push ebx
mov ebx, dword [ebp + 0x14]
mov dword [ebp - 0x2c], eax
mov eax, dword [ebp + 0x10]
push esi
push edi
mov edi, dword [ebp + 8]
mov dword [ebp - 0x24], eax
call sub.KERNEL32.dll_GetUserDefaultUILanguage
movzx esi, ax
test si, si
jbe 0x4212fe
push dword [ebp - 0x24]
push esi
push dword [ebp - 0x2c]
push edi
call fcn.00420ff0
add esp, 0x10
test al, al
je 0x4212d9
mov word [ebx], si
mov al, 1
jmp 0x421582
push edi
push esi
call fcn.00420905
movzx esi, ax
pop ecx
pop ecx
test si, si
jbe 0x4212fe
push dword [ebp - 0x24]
push esi
push dword [ebp - 0x2c]
push edi
call fcn.00420ff0
add esp, 0x10
test al, al
jne 0x4212cf
call sub.KERNEL32.dll_GetSystemDefaultUILanguage
movzx esi, ax
test si, si
jbe 0x421344
push dword [ebp - 0x24]
push esi
push dword [ebp - 0x2c]
push edi
call fcn.00420ff0
add esp, 0x10
test al, al
jne 0x4212cf
push edi
push esi
call fcn.00420905
movzx esi, ax
pop ecx
pop ecx
test si, si
jbe 0x421344
push dword [ebp - 0x24]
push esi
push dword [ebp - 0x2c]
push edi
call fcn.00420ff0
add esp, 0x10
test al, al
jne 0x4212cf
call fcn.004258d5
movzx esi, ax
test si, si
jbe 0x421392
push dword [ebp - 0x24]
push esi
push dword [ebp - 0x2c]
push edi
call fcn.00420ff0
add esp, 0x10
test al, al
jne 0x4212cf
push edi
push esi
call fcn.00420905
movzx esi, ax
pop ecx
pop ecx
test si, si
jbe 0x421392
push dword [ebp - 0x24]
push esi
push dword [ebp - 0x2c]
push edi
call fcn.00420ff0
add esp, 0x10
test al, al
jne 0x4212cf
lea ecx, [ebp - 0x40]
call fcn.0041adfd
push 0x4872a4
lea ecx, [ebp - 0x28]
call fcn.00401c03
push str.fallback.dat
lea eax, [ebp - 0x28]
push edi
push eax
call fcn.004172a7
add esp, 0xc
test al, al
je 0x42156d
xor esi, esi
push esi
push 0x80
push 3
push esi
push 1
push SysReAllocString
push dword [ebp - 0x28]
lea ecx, [ebp - 0x40]
call fcn.0041b185
test eax, eax
jne 0x42142e
mov ecx, dword [ebp - 0x24]
mov word [ebx], ax
call fcn.00401ba4
mov eax, dword [0x485d60]
cmp eax, 0x485d60
je 0x42156d
test byte [eax + 0x1c], 1
je 0x42156d
cmp byte [eax + 0x19], 2
jb 0x42156d
push dword [ebp - 0x28]
push 0x475a58
push 0x1d
push dword [eax + 0x14]
push dword [eax + 0x10]
call fcn.004183ee
add esp, 0x14
jmp 0x42156d
push 0xe
lea eax, [ebp - 0x14]
push esi
push eax
call fcn.0043f490
add esp, 0xc
lea ecx, [ebp - 0x40]
call fcn.0041b039
cmp edx, esi
ja 0x42144e
cmp eax, 0xe
jbe 0x4214a4
mov ecx, dword [ebp - 0x24]
xor eax, eax
mov word [ebx], ax
call fcn.00401ba4
mov eax, dword [0x485d60]
cmp eax, 0x485d60
je 0x421488
test byte [eax + 0x1c], 1
je 0x421488
cmp byte [eax + 0x19], 2
jb 0x421488
push 0x475a58
push 0x1e
push dword [eax + 0x14]
push dword [eax + 0x10]
call fcn.0041646b
add esp, 0x10
xor bl, bl
mov ecx, dword [ebp - 0x28]
add ecx, 0xfffffff0
call fcn.004014ff
lea ecx, [ebp - 0x40]
call fcn.0041b16e
mov al, bl
jmp 0x421582
lea ecx, [ebp - 0x40]
call fcn.0041ae9b
lea ecx, [ebp - 0x40]
call fcn.0041b039
push eax
lea eax, [ebp - 0x14]
push eax
lea ecx, [ebp - 0x40]
call fcn.0041aea6
test eax, eax
je 0x421560
push 0xa
lea eax, [ebp - 0x20]
push esi
push eax
call fcn.0043f490
mov cx, word [ebp - 0x14]
mov eax, 0xfeff
add esp, 0xc
cmp cx, ax
jne 0x421501
xor ecx, ecx
xor eax, eax
mov dx, word [ebp + eax - 0x12]
inc ecx
mov word [ebp + eax - 0x20], dx
lea eax, [ecx + ecx]
cmp word [ebp + eax - 0x14], si
jne 0x4214ea
jmp 0x42151a
test cl, cl
je 0x42151a
lea edx, [ebp - 0x14]
lea eax, [ebp - 0x1f]
mov byte [eax - 1], cl
mov byte [eax], 0
inc eax
inc eax
inc edx
mov cl, byte [edx]
test cl, cl
jne 0x42150b
lea eax, [ebp - 0x30]
push eax
lea eax, [ebp - 0x20]
push 0x46bf98
push eax
mov dword [ebp - 0x30], esi
call fcn.0043ec8f
add esp, 0xc
cmp eax, 1
jne 0x421560
cmp dword [ebp - 0x30], esi
jle 0x421560
push dword [ebp - 0x24]
push dword [ebp - 0x30]
push dword [ebp - 0x2c]
push edi
call fcn.00420ff0
add esp, 0x10
test al, al
je 0x421560
mov ax, word [ebp - 0x30]
mov word [ebx], ax
mov bl, 1
jmp 0x42148a
mov ecx, dword [ebp - 0x24]
xor eax, eax
mov word [ebx], ax
call fcn.00401ba4
mov ecx, dword [ebp - 0x28]
add ecx, 0xfffffff0
call fcn.004014ff
lea ecx, [ebp - 0x40]
call fcn.0041b16e
xor al, al
mov ecx, dword [ebp - 4]
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.0043e999
leave
ret