Function at 0x40dd50
Capabilities:
Identify system language via api

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x440ba0
mov eax, dword fs:[0]
push eax
sub esp, 0x58
push ebx
push esi
push edi
mov eax, dword [0x453d50]
xor eax, ebp
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov esi, dword [ebp + 8]
xor edi, edi
mov dword [ebp - 4], edi
mov eax, dword [ebp + 0xc]
add eax, 0xfffffff0
push eax
mov dword [ebp - 0x30], edi
call fcn.00401f10
add eax, 0x10
add esp, 4
mov dword [ebp - 0x14], eax
lea ecx, [ebp - 0x4c]
mov byte [ebp - 4], 1
call fcn.0041def2
lea eax, [ebp - 0x14]
push eax
lea ecx, [ebp - 0x4c]
push ecx
mov byte [ebp - 4], 2
call fcn.00404cf0
cmp dword [ebp - 0x44], edi
mov dword [ebp - 0x10], edi
jle 0x40e4ac
lea edx, [ebp - 0x60]
push edx
call fcn.0040db10
mov eax, dword [ebp + 0x10]
sub eax, 1
mov byte [ebp - 4], 3
je 0x40df41
sub eax, 1
jne 0x40e053
push ecx
mov ecx, esp
mov dword [ebp - 0x28], esp
push str.LangPath
call fcn.004018e0
mov ebx, dword [ebp - 0x10]
mov byte [ebp - 4], 8
test ebx, ebx
jl 0x40e533
cmp ebx, dword [ebp - 0x44]
jge 0x40e533
mov eax, dword [ebp - 0x48]
mov eax, dword [eax + ebx*4]
push ecx
sub eax, 0x10
mov dword [ebp - 0x24], esp
mov esi, esp
push eax
call fcn.00401f10
add eax, 0x10
mov dword [esi], eax
mov byte [ebp - 4], 9
mov esi, dword [ebp - 0x14]
add esi, 0xfffffff0
mov dword [ebp - 0x18], esp
mov edi, esp
push esi
call fcn.00401f10
add esp, 4
add eax, 0x10
lea ecx, [ebp - 0x1c]
mov dword [edi], eax
push ecx
mov byte [ebp - 4], 3
call fcn.00404f90
push eax
lea ecx, [ebp - 0x60]
mov byte [ebp - 4], 0xa
call fcn.00401d40
mov byte [ebp - 4], 3
mov eax, dword [ebp - 0x1c]
add eax, 0xfffffff0
lea edx, [eax + 0xc]
or ecx, 0xffffffff
lock xadd dword [edx], ecx
dec ecx
test ecx, ecx
jg 0x40de7f
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
cmp ebx, dword [ebp - 0x44]
jge 0x40e533
push ecx
mov ecx, dword [ebp - 0x48]
mov eax, dword [ecx + ebx*4]
sub eax, 0x10
mov dword [ebp - 0x28], esp
mov edi, esp
push eax
call fcn.00401f10
add eax, 0x10
mov dword [edi], eax
add esp, 4
xor eax, eax
call fcn.00404e50
push ecx
mov ecx, esp
mov dword [ebp - 0x28], esp
push 0x449e1c
mov word [ebp - 0x58], ax
call fcn.004018e0
mov byte [ebp - 4], 0xb
cmp ebx, dword [ebp - 0x44]
jge 0x40e533
mov edx, dword [ebp - 0x48]
mov eax, dword [edx + ebx*4]
push ecx
sub eax, 0x10
mov dword [ebp - 0x24], esp
mov edi, esp
push eax
call fcn.00401f10
add eax, 0x10
mov dword [edi], eax
mov dword [ebp - 0x18], esp
mov edi, esp
push esi
mov byte [ebp - 4], 0xc
call fcn.00401f10
add eax, 0x10
mov dword [edi], eax
add esp, 4
lea eax, [ebp - 0x20]
push eax
mov byte [ebp - 4], 3
call fcn.00404f90
mov eax, dword [eax]
push eax
call fcn.004264f5
mov dword [ebp - 0x50], eax
mov eax, dword [ebp - 0x20]
add eax, 0xfffffff0
add esp, 4
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x40e056
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
jmp 0x40e056
mov esi, dword [ebp - 0x10]
test esi, esi
jl 0x40e533
cmp esi, dword [ebp - 0x44]
jge 0x40e533
mov ecx, dword [ebp - 0x48]
lea eax, [ecx + esi*4]
push eax
lea ecx, [ebp - 0x60]
call fcn.00401d40
push ecx
mov dword [ebp - 0x28], esp
mov dword [ebp - 0x18], esp
push ecx
mov ecx, esp
mov dword [ebp - 0x28], esp
push str.LangID
xor ebx, ebx
call fcn.004018e0
mov byte [ebp - 4], 4
cmp esi, dword [ebp - 0x44]
jge 0x40e533
mov edx, dword [ebp - 0x48]
mov eax, dword [ebp - 0x10]
mov eax, dword [edx + eax*4]
push ecx
sub eax, 0x10
mov dword [ebp - 0x24], esp
mov esi, esp
push eax
call fcn.00401f10
add eax, 0x10
mov dword [esi], eax
mov byte [ebp - 4], 5
mov esi, dword [ebp - 0x14]
add esi, 0xfffffff0
mov dword [ebp - 0x34], esp
mov edi, esp
push esi
call fcn.00401f10
mov ecx, dword [ebp - 0x18]
add esp, 4
add eax, 0x10
mov dword [edi], eax
push ecx
mov byte [ebp - 4], 3
call fcn.00404f90
mov eax, ebx
call fcn.00404e50
push ecx
mov dword [ebp - 0x34], esp
mov ebx, esp
push ecx
mov ecx, esp
mov dword [ebp - 0x34], esp
push 0x449e1c
mov word [ebp - 0x58], ax
xor edi, edi
call fcn.004018e0
mov edx, dword [ebp - 0x10]
mov byte [ebp - 4], 6
cmp edx, dword [ebp - 0x44]
jge 0x40e533
mov eax, dword [ebp - 0x48]
push ecx
mov ecx, edx
mov eax, dword [eax + ecx*4]
sub eax, 0x10
mov dword [ebp - 0x28], esp
mov dword [ebp - 0x18], esp
push eax
call fcn.00401f10
mov edx, dword [ebp - 0x18]
add eax, 0x10
mov dword [edx], eax
mov byte [ebp - 4], 7
mov dword [ebp - 0x24], esp
mov dword [ebp - 0x18], esp
push esi
call fcn.00401f10
mov ecx, dword [ebp - 0x18]
add esp, 4
add eax, 0x10
mov dword [ecx], eax
push ebx
mov byte [ebp - 4], 3
call fcn.00404f90
mov eax, edi
call fcn.00404e50
mov dword [ebp - 0x50], eax
mov ebx, dword [ebp - 0x10]
push ecx
mov dword [ebp - 0x34], esp
mov dword [ebp - 0x28], esp
push ecx
mov ecx, esp
mov dword [ebp - 0x34], esp
push str.PrimaryLangID
call fcn.004018e0
mov byte [ebp - 4], 0xd
test ebx, ebx
jl 0x40e533
cmp ebx, dword [ebp - 0x44]
jge 0x40e533
mov edx, dword [ebp - 0x48]
mov esi, dword [edx + ebx*4]
lea eax, [ebx*4]
push ecx
mov ecx, dword [esi - 0x10]
sub esi, 0x10
mov dword [ebp - 0x18], eax
mov eax, dword [ecx]
mov edx, dword [eax + 0x10]
mov dword [ebp - 0x38], esp
mov dword [ebp - 0x24], esp
call edx
cmp dword [esi + 0xc], 0
lea edx, [esi + 0xc]
jl 0x40e0c0
cmp eax, dword [esi]
jne 0x40e0c0
mov edi, esi
mov eax, 1
lock xadd dword [edx], eax
jmp 0x40e0fb
mov ecx, dword [esi + 4]
mov edx, dword [eax]
mov edx, dword [edx]
push 2
push ecx
mov ecx, eax
call edx
mov edi, eax
test edi, edi
je 0x40e538
mov eax, dword [esi + 4]
mov dword [edi + 4], eax
mov eax, dword [esi + 4]
lea ecx, [eax + eax + 2]
push ecx
add esi, 0x10
lea edx, [eax + eax + 2]
push esi
push edx
lea eax, [edi + 0x10]
push eax
call fcn.004252cc
add esp, 0x10
mov ecx, dword [ebp - 0x24]
add edi, 0x10
mov dword [ecx], edi
mov byte [ebp - 4], 0xe
mov esi, dword [ebp - 0x14]
push ecx
mov ecx, dword [esi - 0x10]
mov edx, dword [ecx]
mov eax, dword [edx + 0x10]
add esi, 0xfffffff0
mov dword [ebp - 0x24], esp
mov dword [ebp - 0x24], esp
call eax
cmp dword [esi + 0xc], 0
lea edx, [esi + 0xc]
jl 0x40e138
cmp eax, dword [esi]
jne 0x40e138
mov edi, esi
mov ecx, 1
lock xadd dword [edx], ecx
jmp 0x40e173
mov ecx, dword [esi + 4]
mov edx, dword [eax]
mov edx, dword [edx]
push 2
push ecx
mov ecx, eax
call edx
mov edi, eax
test edi, edi
je 0x40e538
mov eax, dword [esi + 4]
mov dword [edi + 4], eax
mov eax, dword [esi + 4]
lea ecx, [eax + eax + 2]
push ecx
lea edx, [esi + 0x10]
push edx
lea eax, [eax + eax + 2]
push eax
lea ecx, [edi + 0x10]
push ecx
call fcn.004252cc
add esp, 0x10
mov edx, dword [ebp - 0x24]
mov eax, dword [ebp - 0x28]
add edi, 0x10
mov dword [edx], edi
push eax
mov byte [ebp - 4], 3
call fcn.00404f90
xor eax, eax
call fcn.00404e50
push ecx
mov ecx, esp
mov dword [ebp - 0x38], esp
push str.LangExt
mov word [ebp - 0x56], ax
call fcn.004018e0
mov byte [ebp - 4], 0xf
cmp ebx, dword [ebp - 0x44]
jge 0x40e533
mov edx, dword [ebp - 0x18]
push ecx
mov ecx, dword [ebp - 0x48]
mov edi, dword [ecx + edx]
mov ecx, dword [edi - 0x10]
mov eax, dword [ecx]
mov edx, dword [eax + 0x10]
sub edi, 0x10
mov dword [ebp - 0x34], esp
mov dword [ebp - 0x28], esp
call edx
cmp dword [edi + 0xc], 0
lea ecx, [edi + 0xc]
jl 0x40e1e7
cmp eax, dword [edi]
jne 0x40e1e7
mov ebx, edi
mov eax, 1
lock xadd dword [ecx], eax
jmp 0x40e222
mov ecx, dword [edi + 4]
mov edx, dword [eax]
mov edx, dword [edx]
push 2
push ecx
mov ecx, eax
call edx
mov ebx, eax
test ebx, ebx
je 0x40e538
mov eax, dword [edi + 4]
mov dword [ebx + 4], eax
mov eax, dword [edi + 4]
lea ecx, [eax + eax + 2]
push ecx
add edi, 0x10
lea edx, [eax + eax + 2]
push edi
push edx
lea eax, [ebx + 0x10]
push eax
call fcn.004252cc
add esp, 0x10
mov ecx, dword [ebp - 0x28]
add ebx, 0x10
mov dword [ecx], ebx
mov byte [ebp - 4], 0x10
push ecx
mov ecx, dword [esi]
mov edx, dword [ecx]
mov eax, dword [edx + 0x10]
mov dword [ebp - 0x28], esp
mov ebx, esp
call eax
cmp dword [esi + 0xc], 0
lea ecx, [esi + 0xc]
jl 0x40e257
cmp eax, dword [esi]
jne 0x40e257
mov edi, esi
mov edx, 1
lock xadd dword [ecx], edx
jmp 0x40e292
mov ecx, dword [esi + 4]
mov edx, dword [eax]
mov edx, dword [edx]
push 2
push ecx
mov ecx, eax
call edx
mov edi, eax
test edi, edi
je 0x40e538
mov eax, dword [esi + 4]
mov dword [edi + 4], eax
mov eax, dword [esi + 4]
lea ecx, [eax + eax + 2]
push ecx
lea edx, [esi + 0x10]
push edx
lea eax, [eax + eax + 2]
push eax
lea ecx, [edi + 0x10]
push ecx
call fcn.004252cc
add esp, 0x10
lea edx, [ebp - 0x2c]
add edi, 0x10
mov dword [ebx], edi
push edx
mov byte [ebp - 4], 3
call fcn.00404f90
mov byte [ebp - 4], 0x11
mov ecx, dword [eax]
mov edi, dword [ebp - 0x5c]
lea eax, [ecx - 0x10]
add edi, 0xfffffff0
cmp eax, edi
je 0x40e300
cmp dword [edi + 0xc], 0
lea ebx, [edi + 0xc]
jl 0x40e2f3
mov edx, dword [eax]
cmp edx, dword [edi]
jne 0x40e2f3
push eax
call fcn.00401f10
mov dword [ebp - 0x28], eax
add esp, 4
or eax, 0xffffffff
lock xadd dword [ebx], eax
dec eax
test eax, eax
jg 0x40e2e8
mov ecx, dword [edi]
mov edx, dword [ecx]
mov eax, dword [edx + 4]
push edi
call eax
mov ecx, dword [ebp - 0x28]
add ecx, 0x10
mov dword [ebp - 0x5c], ecx
jmp 0x40e300
mov eax, dword [ecx - 0xc]
push eax
push ecx
lea ecx, [ebp - 0x5c]
call fcn.00401e10
mov byte [ebp - 4], 3
mov eax, dword [ebp - 0x2c]
add eax, 0xfffffff0
lea edx, [eax + 0xc]
or ecx, 0xffffffff
lock xadd dword [edx], ecx
dec ecx
test ecx, ecx
jg 0x40e323
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
push ecx
mov dword [ebp - 0x38], esp
mov dword [ebp - 0x24], esp
push ecx
mov ecx, esp
mov dword [ebp - 0x38], esp
push str.Support
call fcn.004018e0
mov ecx, dword [ebp - 0x10]
mov byte [ebp - 4], 0x12
cmp ecx, dword [ebp - 0x44]
jge 0x40e533
mov edx, dword [ebp - 0x48]
mov eax, dword [ebp - 0x18]
mov edi, dword [edx + eax]
push ecx
mov ecx, dword [edi - 0x10]
mov edx, dword [ecx]
mov eax, dword [edx + 0x10]
sub edi, 0x10
mov dword [ebp - 0x34], esp
mov dword [ebp - 0x28], esp
call eax
cmp dword [edi + 0xc], 0
lea ecx, [edi + 0xc]
jl 0x40e381
cmp eax, dword [edi]
jne 0x40e381
mov ebx, edi
mov edx, 1
lock xadd dword [ecx], edx
jmp 0x40e3bc
mov ecx, dword [edi + 4]
mov edx, dword [eax]
mov edx, dword [edx]
push 2
push ecx
mov ecx, eax
call edx
mov ebx, eax
test ebx, ebx
je 0x40e538
mov eax, dword [edi + 4]
mov dword [ebx + 4], eax
mov eax, dword [edi + 4]
lea ecx, [eax + eax + 2]
push ecx
add edi, 0x10
lea edx, [eax + eax + 2]
push edi
push edx
lea eax, [ebx + 0x10]
push eax
call fcn.004252cc
add esp, 0x10
mov ecx, dword [ebp - 0x28]
add ebx, 0x10
mov dword [ecx], ebx
mov byte [ebp - 4], 0x13
push ecx
mov ecx, dword [esi]
mov edx, dword [ecx]
mov eax, dword [edx + 0x10]
mov dword [ebp - 0x28], esp
mov ebx, esp
call eax
cmp dword [esi + 0xc], 0
lea ecx, [esi + 0xc]
jl 0x40e3f1
cmp eax, dword [esi]
jne 0x40e3f1
mov edi, esi
mov edx, 1
lock xadd dword [ecx], edx
jmp 0x40e42c
mov ecx, dword [esi + 4]
mov edx, dword [eax]
mov edx, dword [edx]
push 2
push ecx
mov ecx, eax
call edx
mov edi, eax
test edi, edi
je 0x40e538
mov eax, dword [esi + 4]
mov dword [edi + 4], eax
mov eax, dword [esi + 4]
lea ecx, [eax + eax + 2]
push ecx
add esi, 0x10
lea edx, [eax + eax + 2]
push esi
push edx
lea eax, [edi + 0x10]
push eax
call fcn.004252cc
add esp, 0x10
mov ecx, dword [ebp - 0x24]
add edi, 0x10
mov dword [ebx], edi
push ecx
mov byte [ebp - 4], 3
call fcn.00404f90
xor eax, eax
call fcn.00404e50
mov edi, dword [ebp + 8]
lea edx, [ebp - 0x60]
push edx
add edi, 4
mov dword [ebp - 0x54], eax
call fcn.0040eca0
mov byte [ebp - 4], 2
mov eax, dword [ebp - 0x5c]
add eax, 0xfffffff0
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x40e47a
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
mov eax, dword [ebp - 0x60]
add eax, 0xfffffff0
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x40e499
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
mov eax, dword [ebp - 0x10]
inc eax
cmp eax, dword [ebp - 0x44]
mov dword [ebp - 0x10], eax
jl 0x40ddc1
mov esi, dword [ebp + 8]
mov dword [ebp + 8], 0xffffffff
call dword [sym.imp.KERNEL32.dll_GetUserDefaultLangID]
mov ecx, dword [esi + 0x14]
sub ecx, dword [esi + 0x10]
movzx eax, ax
mov dword [ebp + 0x10], eax
and eax, 0x3ff
mov dword [ebp - 0x28], eax
mov eax, 0x66666667
imul ecx
sar edx, 3
mov ecx, edx
shr ecx, 0x1f
xor edi, edi
add ecx, edx
je 0x40e549
xor ebx, ebx
mov ecx, dword [esi + 0x14]
sub ecx, dword [esi + 0x10]
mov eax, 0x66666667
imul ecx
sar edx, 3
mov eax, edx
shr eax, 0x1f
add eax, edx
cmp edi, eax
jb 0x40e504
call fcn.0042610d
mov ecx, dword [esi + 0x10]
mov dx, word [ebp + 0x10]
cmp word [ebx + ecx + 8], dx
je 0x40e53d
mov ecx, dword [esi + 0x14]
sub ecx, dword [esi + 0x10]
mov eax, 0x66666667
imul ecx
sar edx, 3
mov eax, edx
shr eax, 0x1f
inc edi
add eax, edx
add ebx, 0x14
cmp edi, eax
jb 0x40e4e4
jmp 0x40e549
call fcn.00416a63
call fcn.00411ca0
mov dword [ebp + 8], edi
cmp edi, 0xffffffff
jne 0x40e633
mov ecx, dword [esi + 0x14]
sub ecx, dword [esi + 0x10]
mov eax, 0x66666667
imul ecx
sar edx, 3
mov ecx, edx
shr ecx, 0x1f
xor edi, edi
add ecx, edx
je 0x40e5c7
xor ebx, ebx
jmp 0x40e570
mov ecx, dword [esi + 0x14]
sub ecx, dword [esi + 0x10]
mov eax, 0x66666667
imul ecx
sar edx, 3
mov eax, edx
shr eax, 0x1f
add eax, edx
cmp edi, eax
jb 0x40e590
call fcn.0042610d
mov ecx, dword [esi + 0x10]
mov dx, word [ebp - 0x28]
cmp word [ecx + ebx + 0xa], dx
je 0x40e5bf
mov ecx, dword [esi + 0x14]
sub ecx, dword [esi + 0x10]
mov eax, 0x66666667
imul ecx
sar edx, 3
mov eax, edx
shr eax, 0x1f
inc edi
add eax, edx
add ebx, 0x14
cmp edi, eax
jb 0x40e570
jmp 0x40e5c7
mov dword [ebp + 8], edi
cmp edi, 0xffffffff
jne 0x40e633
mov ecx, dword [esi + 0x14]
sub ecx, dword [esi + 0x10]
mov eax, 0x66666667
imul ecx
sar edx, 3
mov ecx, edx
shr ecx, 0x1f
xor edi, edi
add ecx, edx
je 0x40e633
xor ebx, ebx
mov ecx, dword [esi + 0x14]
sub ecx, dword [esi + 0x10]
mov eax, 0x66666667
imul ecx
sar edx, 3
mov eax, edx
shr eax, 0x1f
add eax, edx
cmp edi, eax
jb 0x40e604
call fcn.0042610d
mov ecx, dword [esi + 0x10]
cmp word [ecx + ebx + 0xa], 9
je 0x40e630
mov ecx, dword [esi + 0x14]
sub ecx, dword [esi + 0x10]
mov eax, 0x66666667
imul ecx
sar edx, 3
mov eax, edx
shr eax, 0x1f
inc edi
add eax, edx
add ebx, 0x14
cmp edi, eax
jb 0x40e5e4
jmp 0x40e633
mov dword [ebp + 8], edi
mov eax, dword [ebp + 8]
mov dword [esi + 0x1c], eax
mov esi, 1
cmp eax, 0xffffffff
jne 0x40e646
mov esi, dword [ebp - 0x30]
lea ecx, [ebp - 0x4c]
mov byte [ebp - 4], 1
call fcn.0041e0cf
mov byte [ebp - 4], 0
mov eax, dword [ebp - 0x14]
add eax, 0xfffffff0
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x40e675
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
mov dword [ebp - 4], 0xffffffff
mov eax, dword [ebp + 0xc]
add eax, 0xfffffff0
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x40e69b
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
mov eax, esi
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 0xc