Function at 0x40e400
Capabilities:
Identify system language via api

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x42a577
mov eax, dword fs:[0]
push eax
sub esp, 0x124
mov eax, dword [0x43b00c]
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, ecx
mov eax, dword [ebp + 8]
mov dword [ebp - 0x128], eax
mov dword [ebp - 0x130], 0
call fcn.00403ba0
mov ecx, eax
test ecx, ecx
jne 0x40e458
push 0x80004005
call fcn.00404640
mov eax, dword [ecx]
call dword [eax + 0xc]
lea edi, [eax + 0x10]
mov dword [ebp - 0x124], edi
mov dword [ebp - 4], 0
mov ebx, dword [esi + 0x10]
test ebx, ebx
jne 0x40e4ae
add edi, 0xfffffff0
mov ecx, edi
call fcn.00406390
mov esi, dword [ebp - 0x128]
add eax, 0x10
mov dword [ebp - 4], 0xffffffff
mov dword [esi], eax
or eax, 0xffffffff
lock xadd dword [edi + 0xc], eax
dec eax
test eax, eax
jg 0x40e723
mov ecx, dword [edi]
push edi
mov edx, dword [ecx]
call dword [edx + 4]
jmp 0x40e723
mov dword [ebp - 0x120], 0
mov dword [ebp - 0x11c], 0
call fcn.00407370
mov dword [ebp - 0x120], eax
sub esp, 0x10
mov byte [ebp - 4], 1
mov ecx, esp
mov dword [ebp - 0x12c], ecx
mov eax, dword [ebx]
mov dword [ecx], eax
lea eax, [ebx + 4]
push eax
add ecx, 4
call fcn.0040eab0
mov edx, dword [ebp + 0xc]
lea eax, [ebp - 0x120]
mov ecx, dword [esi + 0xc]
push eax
call fcn.0040dcf0
add esp, 0x14
call dword [sym.imp.KERNEL32.dll_GetUserDefaultLangID]
mov edx, dword [ebp - 0x120]
movzx esi, ax
mov eax, edx
mov ecx, dword [edx + 4]
cmp byte [ecx + 0xd], 0
jne 0x40e53d
nop dword [eax + eax]
cmp dword [ecx + 0x10], esi
jae 0x40e52a
mov ecx, dword [ecx + 8]
jmp 0x40e52e
mov eax, ecx
mov ecx, dword [ecx]
cmp byte [ecx + 0xd], 0
je 0x40e520
cmp eax, edx
je 0x40e53d
cmp esi, dword [eax + 0x10]
jae 0x40e53f
mov eax, edx
cmp eax, edx
jne 0x40e54d
mov eax, dword [edx]
cmp eax, edx
je 0x40e60a
mov edi, dword [eax + 0x14]
lea eax, [ebp - 0x114]
mov dword [ebp - 0x118], eax
test edi, edi
jne 0x40e56a
xor edx, edx
mov dword [ebp - 0x118], edx
jmp 0x40e5b4
mov esi, edi
lea ecx, [esi + 2]
nop
mov ax, word [esi]
add esi, 2
test ax, ax
jne 0x40e570
sub esi, ecx
lea eax, [ebp - 0x114]
sar esi, 1
push ecx
inc esi
lea ecx, [ebp - 0x118]
push eax
mov edx, esi
call fcn.00405090
mov ecx, dword [ebp - 0x118]
lea edx, [esi + esi]
push edx
push edi
call fcn.004040c0
push eax
call fcn.00403d40
mov edx, dword [ebp - 0x118]
add esp, 0x14
mov byte [ebp - 4], 2
test edx, edx
jne 0x40e5c0
xor ecx, ecx
jmp 0x40e5d4
mov ecx, edx
lea esi, [ecx + 2]
mov ax, word [ecx]
add ecx, 2
test ax, ax
jne 0x40e5c5
sub ecx, esi
sar ecx, 1
push ecx
push edx
lea ecx, [ebp - 0x124]
call fcn.00404160
mov byte [ebp - 4], 1
lea ecx, [ebp - 0x114]
mov eax, dword [ebp - 0x118]
cmp eax, ecx
je 0x40e5fe
push eax
call fcn.00419da3
add esp, 4
mov edx, dword [ebp - 0x120]
mov edi, dword [ebp - 0x124]
mov esi, dword [edx]
cmp esi, edx
je 0x40e66c
push dword [esi + 0x14]
call fcn.00416865
add esp, 4
cmp byte [esi + 0xd], 0
jne 0x40e662
mov eax, dword [esi + 8]
cmp byte [eax + 0xd], 0
jne 0x40e640
mov esi, eax
mov eax, dword [esi]
cmp byte [eax + 0xd], 0
jne 0x40e662
mov esi, eax
mov eax, dword [esi]
cmp byte [eax + 0xd], 0
je 0x40e634
jmp 0x40e662
mov eax, dword [esi + 4]
cmp byte [eax + 0xd], 0
jne 0x40e660
nop dword [eax]
cmp esi, dword [eax + 8]
jne 0x40e660
mov esi, eax
mov eax, dword [eax + 4]
cmp byte [eax + 0xd], 0
je 0x40e650
mov esi, eax
mov edx, dword [ebp - 0x120]
cmp esi, edx
jne 0x40e610
mov byte [ebp - 4], 3
mov ebx, dword [edx + 4]
mov esi, ebx
cmp byte [ebx + 0xd], 0
jne 0x40e6a7
nop dword [eax + eax]
push dword [esi + 8]
lea ecx, [ebp - 0x120]
call fcn.0040ecb0
mov esi, dword [esi]
push ebx
call fcn.00416159
add esp, 4
mov ebx, esi
cmp byte [esi + 0xd], 0
je 0x40e680
mov edx, dword [ebp - 0x120]
mov dword [edx + 4], edx
add edi, 0xfffffff0
mov eax, dword [ebp - 0x120]
mov ecx, edi
mov dword [eax], eax
mov eax, dword [ebp - 0x120]
mov byte [ebp - 4], 1
mov dword [eax + 8], eax
mov dword [ebp - 0x11c], 0
call fcn.00406390
mov esi, dword [ebp - 0x128]
lea ecx, [ebp - 0x120]
add eax, 0x10
mov dword [esi], eax
mov eax, dword [ebp - 0x120]
push eax
push dword [eax]
lea eax, [ebp - 0x12c]
push eax
call fcn.0040f010
push dword [ebp - 0x120]
call fcn.00416159
add esp, 4
mov dword [ebp - 4], 0xffffffff
or eax, 0xffffffff
lock xadd dword [edi + 0xc], eax
dec eax
test eax, eax
jg 0x40e723
mov ecx, dword [edi]
push edi
mov eax, dword [ecx]
call dword [eax + 4]
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.00416148
mov esp, ebp
pop ebp
ret 8