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

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x42c
mov eax, dword [0x43c064]
xor eax, ebp
mov dword [ebp - 4], eax
mov eax, dword [ebp + 0xc]
push esi
mov esi, edx
mov dword [ebp - 0x42c], eax
push edi
mov edi, dword [ebp + 8]
test esi, esi
jne 0x405498
xor eax, eax
jmp 0x40571e
test eax, eax
je 0x405491
mov ecx, dword [eax]
mov edx, 0x41b290
push ebx
xor ebx, ebx
mov dword [ebp - 0x428], ecx
mov dword [eax], ebx
lea eax, [ebp - 0x210]
push ecx
push eax
mov ecx, esi
mov dword [ebp - 0x418], ebx
mov dword [ebp - 0x414], ebx
mov dword [ebp - 0x420], ebx
call fcn.00405757
test eax, eax
je 0x4054fc
lea eax, [ebp - 0x420]
push eax
lea eax, [ebp - 0x414]
push eax
lea edx, [ebp - 0x418]
lea ecx, [ebp - 0x210]
call fcn.004053e8
mov eax, dword [ebp - 0x414]
test eax, eax
jne 0x405545
push ecx
lea eax, [ebp - 0x210]
mov edx, 0x41b284
push eax
mov ecx, esi
call fcn.00405757
test eax, eax
je 0x40563e
lea eax, [ebp - 0x420]
push eax
lea eax, [ebp - 0x414]
push eax
lea edx, [ebp - 0x418]
lea ecx, [ebp - 0x210]
call fcn.004053e8
mov eax, dword [ebp - 0x414]
test eax, eax
je 0x40563e
cmp dword [ebp - 0x418], ebx
je 0x40571a
mov ecx, eax
call fcn.00401e04
mov esi, eax
mov dword [ebp - 0x41c], esi
test esi, esi
je 0x40571a
mov edx, dword [ebp - 0x420]
mov ecx, dword [ebp - 0x418]
push esi
push dword [ebp - 0x414]
call fcn.0040bf44
test eax, eax
je 0x40562e
call dword [sym.imp.KERNEL32.dll_GetUserDefaultLangID]
movzx ecx, ax
mov eax, 0x41bc54
mov dword [ebp - 0x424], ecx
mov dword [ebp - 0x414], eax
push dword [eax - 4]
xor edx, edx
mov dword [ebp - 0x418], ebx
cmp dword [eax], ebx
cmovne edx, ecx
lea ecx, [ebp - 0x410]
call fcn.00405366
lea eax, [ebp - 0x418]
mov ecx, esi
push eax
lea edx, [ebp - 0x410]
call fcn.0040bfa2
test eax, eax
je 0x4055e5
mov esi, dword [ebp - 0x418]
test esi, esi
jne 0x405603
mov esi, dword [ebp - 0x41c]
mov eax, dword [ebp - 0x414]
add eax, 8
mov dword [ebp - 0x414], eax
cmp eax, 0x41bc94
jge 0x40562e
mov ecx, dword [ebp - 0x424]
jmp 0x4055a2
test edi, edi
je 0x405616
push dword [ebp - 0x428]
mov edx, esi
mov ecx, edi
call fcn.0040b4cf
mov ecx, esi
call fcn.0040b2d4
mov ecx, dword [ebp - 0x42c]
mov dword [ecx], eax
mov ecx, esi
call fcn.00401e39
mov bl, 1
mov ecx, dword [ebp - 0x41c]
call fcn.00401e39
jmp 0x40571a
lea eax, [ebp - 0x414]
mov dword [ebp - 0x414], ebx
push eax
push 0x20019
push ecx
mov edx, esi
mov dword [ebp - 0x424], 0x208
mov ecx, Ordinal_1
call fcn.0040bac7
test eax, eax
jne 0x405706
movzx eax, byte [ebp - 0x210]
xor ecx, ecx
cmp dword [ebp - 0x41c], 1
cmove eax, ecx
mov byte [ebp - 0x210], al
lea eax, [ebp - 0x424]
push eax
lea eax, [ebp - 0x210]
push eax
lea eax, [ebp - 0x41c]
push eax
push ebx
push ebx
push dword [ebp - 0x414]
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
test eax, eax
jne 0x405706
mov edx, 0x41c160
lea ecx, [ebp - 0x210]
call fcn.0040b59c
mov esi, eax
test esi, esi
je 0x405706
push 0x20
lea ecx, [esi + 0x14]
pop edx
call fcn.0040b2eb
test eax, eax
je 0x405706
xor ecx, ecx
mov word [eax], cx
test edi, edi
je 0x4056ec
push dword [ebp - 0x428]
mov edx, esi
mov ecx, edi
call fcn.0040b4cf
mov ecx, edi
call fcn.0040b2d4
mov ecx, dword [ebp - 0x42c]
mov bl, 1
cmp dword [ebp - 0x414], 0
mov dword [ecx], eax
jmp 0x40570c
cmp dword [ebp - 0x414], ebx
je 0x40571a
push dword [ebp - 0x414]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
movzx eax, bl
pop ebx
mov ecx, dword [ebp - 4]
pop edi
xor ecx, ebp
pop esi
call fcn.00416bd0
mov esp, ebp
pop ebp
ret 0xc