Function at 0x405955
Capabilities:
Identify system language via api
Query or enumerate registry value

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x42f4c6
mov eax, dword fs:[0]
push eax
sub esp, 0x428
mov eax, dword [0x45b070]
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
mov esi, edx
mov eax, dword [ebp + 0xc]
mov edi, dword [ebp + 8]
mov dword [ebp - 0x434], eax
test esi, esi
jne 0x40599c
xor eax, eax
jmp 0x405c41
test eax, eax
je 0x405995
mov ecx, dword [eax]
xor edx, edx
mov dword [ebp - 0x430], ecx
xor ecx, ecx
mov dword [eax], edx
lea eax, [ebp - 0x21c]
push ecx
mov dword [ebp - 0x424], edx
mov dword [ebp - 0x420], edx
mov dword [ebp - 0x428], edx
mov edx, 0x4333f8
mov word [ebp - 0x21c], cx
mov ecx, esi
push eax
call fcn.00405c84
test eax, eax
je 0x405a08
lea eax, [ebp - 0x428]
push eax
lea eax, [ebp - 0x420]
push eax
lea edx, [ebp - 0x424]
lea ecx, [ebp - 0x21c]
call fcn.004058d1
mov ebx, dword [ebp - 0x420]
test ebx, ebx
jne 0x405a51
push ecx
lea eax, [ebp - 0x21c]
mov edx, 0x4333ec
push eax
mov ecx, esi
call fcn.00405c84
test eax, eax
je 0x405b38
lea eax, [ebp - 0x428]
push eax
lea eax, [ebp - 0x420]
push eax
lea edx, [ebp - 0x424]
lea ecx, [ebp - 0x21c]
call fcn.004058d1
mov ebx, dword [ebp - 0x420]
test ebx, ebx
je 0x405b38
xor esi, esi
cmp dword [ebp - 0x424], esi
je 0x405c3f
mov ecx, ebx
call fcn.0040202c
mov dword [ebp - 0x420], eax
test eax, eax
je 0x405c3f
mov edx, dword [ebp - 0x428]
mov ecx, dword [ebp - 0x424]
push eax
push ebx
call fcn.0040c4a6
test eax, eax
je 0x405b28
call dword [sym.imp.KERNEL32.dll_GetUserDefaultLangID]
movzx eax, ax
mov ebx, 0x433d64
mov dword [ebp - 0x42c], eax
and dword [ebp - 0x424], 0
lea ecx, [ebp - 0x41c]
push dword [ebx - 4]
xor edx, edx
cmp dword [ebx], edx
cmovne edx, eax
call fcn.00405851
mov ecx, dword [ebp - 0x420]
lea eax, [ebp - 0x424]
push eax
lea edx, [ebp - 0x41c]
call fcn.0040c504
test eax, eax
je 0x405ae5
mov esi, dword [ebp - 0x424]
test esi, esi
jne 0x405af8
add ebx, 8
cmp ebx, 0x433da4
jge 0x405b26
mov eax, dword [ebp - 0x42c]
jmp 0x405aa3
test edi, edi
je 0x405b0b
push dword [ebp - 0x430]
mov edx, esi
mov ecx, edi
call fcn.0040ba65
mov ecx, esi
call fcn.0040b82d
mov ecx, dword [ebp - 0x434]
mov dword [ecx], eax
mov ecx, esi
call fcn.00402061
xor esi, esi
inc esi
jmp 0x405b28
xor esi, esi
mov ecx, dword [ebp - 0x420]
call fcn.00402061
jmp 0x405c3f
lea eax, [ebp - 0x420]
mov dword [ebp - 0x42c], 0x208
push eax
push 0x20019
push ecx
xor ebx, ebx
mov edx, esi
mov ecx, Ordinal_1
mov dword [ebp - 0x420], ebx
call fcn.0040c046
test eax, eax
jne 0x405c29
movzx eax, byte [ebp - 0x21c]
xor esi, esi
xor ecx, ecx
inc esi
cmp dword [ebp - 0x424], esi
cmove eax, ecx
mov byte [ebp - 0x21c], al
lea eax, [ebp - 0x42c]
push eax
lea eax, [ebp - 0x21c]
push eax
lea eax, [ebp - 0x424]
push eax
push ebx
push ebx
push dword [ebp - 0x420]
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
test eax, eax
jne 0x405c29
mov edx, 0x434260
lea ecx, [ebp - 0x21c]
call fcn.0040bb32
mov ebx, eax
test ebx, ebx
jne 0x405bdc
cmp dword [ebp - 0x420], 0
je 0x405bd8
push dword [ebp - 0x420]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
xor esi, esi
jmp 0x405c3f
push 0x20
lea ecx, [ebx + 0x14]
pop edx
call fcn.0040b844
test eax, eax
je 0x405bc3
xor ecx, ecx
mov word [eax], cx
test edi, edi
je 0x405c03
push dword [ebp - 0x430]
mov edx, ebx
mov ecx, edi
call fcn.0040ba65
mov ecx, edi
call fcn.0040b82d
cmp dword [ebp - 0x420], 0
mov ecx, dword [ebp - 0x434]
mov dword [ecx], eax
je 0x405c3f
push dword [ebp - 0x420]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
jmp 0x405c3f
cmp dword [ebp - 0x420], ebx
je 0x405c3d
push dword [ebp - 0x420]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov esi, ebx
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.0042d667
leave
ret 0xc