Function at 0x408d75
Capabilities:
Identify system language via api

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x42c
mov eax, dword [0x410438]
xor eax, ebp
mov dword [ebp - 4], eax
mov eax, dword [ebp + 8]
mov dword [ebp - 0x41c], eax
mov eax, dword [ebp + 0x10]
push ebx
mov ebx, dword [ebp + 0xc]
mov dword [ebp - 0x428], eax
mov eax, dword [ebp + 0x14]
mov dword [ebp - 0x42c], eax
test ebx, ebx
jne 0x408db2
xor eax, eax
jmp 0x409073
test eax, eax
je 0x408dab
mov ecx, dword [eax]
push esi
push edi
xor esi, esi
mov dword [ebp - 0x424], ecx
push 0x104
mov dword [eax], esi
lea eax, [ebp - 0x210]
push eax
push str.edit
push ebx
mov dword [ebp - 0x418], esi
mov dword [ebp - 0x414], esi
mov dword [ebp - 0x420], esi
call fcn.00402ec2
test eax, eax
je 0x408e20
lea eax, [ebp - 0x420]
push eax
lea eax, [ebp - 0x414]
push eax
lea eax, [ebp - 0x418]
push eax
lea eax, [ebp - 0x210]
push eax
call fcn.00401f54
mov edi, dword [ebp - 0x414]
test edi, edi
jne 0x408ed2
push 0x104
lea eax, [ebp - 0x210]
push eax
push str.open
push ebx
call fcn.00402ec2
test eax, eax
je 0x408e66
lea eax, [ebp - 0x420]
push eax
lea eax, [ebp - 0x414]
push eax
lea eax, [ebp - 0x418]
push eax
lea eax, [ebp - 0x210]
push eax
call fcn.00401f54
mov edi, dword [ebp - 0x414]
test edi, edi
jne 0x408ed2
cmp dword [ebp + 0x18], esi
je 0x408fb1
mov edi, dword [ebp - 0x41c]
push edi
call fcn.00409084
test eax, eax
je 0x408fb1
push edi
call fcn.00403ad6
push eax
push 0x104
lea eax, [ebp - 0x210]
push eax
call fcn.00402dc7
test eax, eax
je 0x408fb1
lea eax, [ebp - 0x420]
push eax
lea eax, [ebp - 0x414]
push eax
lea eax, [ebp - 0x418]
push eax
lea eax, [ebp - 0x210]
push eax
call fcn.00401f54
mov edi, dword [ebp - 0x414]
test edi, edi
je 0x408fb1
cmp dword [ebp - 0x418], esi
je 0x40906f
push edi
call fcn.004018e8
mov ebx, eax
test ebx, ebx
je 0x40906f
push ebx
push edi
push dword [ebp - 0x420]
push dword [ebp - 0x418]
call fcn.0040a91b
test eax, eax
je 0x408fa6
call dword [sym.imp.KERNEL32.dll_GetUserDefaultLangID]
movzx ecx, ax
mov edi, 0x40f874
mov dword [ebp - 0x41c], ecx
push dword [edi - 4]
xor eax, eax
mov dword [ebp - 0x418], esi
cmp dword [edi], esi
cmovne eax, ecx
push eax
lea eax, [ebp - 0x410]
push eax
call fcn.00401ed6
lea eax, [ebp - 0x418]
push eax
lea eax, [ebp - 0x410]
push eax
push ebx
call fcn.0040ac67
test eax, eax
je 0x408f5a
cmp dword [ebp - 0x418], esi
jne 0x408f6d
add edi, 8
cmp edi, 0x40f8b4
jge 0x408fa6
mov ecx, dword [ebp - 0x41c]
jmp 0x408f1d
push dword [ebp - 0x424]
mov esi, dword [ebp - 0x428]
push dword [ebp - 0x418]
push esi
call fcn.0040a2c6
push dword [ebp - 0x418]
call fcn.00409ec7
mov ecx, dword [ebp - 0x42c]
push dword [ebp - 0x418]
mov dword [ecx], eax
call fcn.00401924
xor esi, esi
inc esi
push ebx
call fcn.00401924
jmp 0x40906f
lea eax, [ebp - 0x414]
mov dword [ebp - 0x414], esi
push eax
push 0x20019
push esi
push ebx
push Ordinal_1
mov dword [ebp - 0x41c], 0x208
call fcn.0040ab4b
test eax, eax
jne 0x40905b
lea eax, [ebp - 0x41c]
push eax
lea eax, [ebp - 0x210]
push eax
lea eax, [ebp - 0x418]
push eax
push esi
push esi
push dword [ebp - 0x414]
call fcn.0040ab7c
test eax, eax
jne 0x40905b
push 0x40e5d4
lea eax, [ebp - 0x210]
push eax
call fcn.0040a502
mov edi, eax
test edi, edi
je 0x40905b
push 0x20
lea eax, [edi + 0x14]
push eax
call fcn.0040a466
test eax, eax
je 0x40905b
push dword [ebp - 0x424]
mov esi, dword [ebp - 0x428]
xor ecx, ecx
push edi
push esi
mov word [eax], cx
call fcn.0040a2c6
push esi
call fcn.00409ec7
mov ecx, dword [ebp - 0x42c]
xor esi, esi
inc esi
cmp dword [ebp - 0x414], 0
mov dword [ecx], eax
jmp 0x409061
cmp dword [ebp - 0x414], esi
je 0x40906f
push dword [ebp - 0x414]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
pop edi
mov eax, esi
pop esi
mov ecx, dword [ebp - 4]
xor ecx, ebp
pop ebx
call fcn.0040bb1a
mov esp, ebp
pop ebp
ret 0x14