Function at 0x40f5f0
Capabilities:
Identify system language via api

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x442300
mov eax, dword fs:[0]
push eax
sub esp, 0x58
push ebx
push esi
push edi
mov eax, dword [0x454d50]
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.00402070
add eax, 0x10
add esp, 4
mov dword [ebp - 0x14], eax
lea ecx, [ebp - 0x4c]
mov byte [ebp - 4], 1
call fcn.0041f693
lea eax, [ebp - 0x14]
push eax
lea ecx, [ebp - 0x4c]
push ecx
mov byte [ebp - 4], 2
call fcn.00406090
cmp dword [ebp - 0x44], edi
mov dword [ebp - 0x10], edi
jle 0x40fd4c
lea edx, [ebp - 0x60]
push edx
call fcn.0040f3b0
mov eax, dword [ebp + 0x10]
sub eax, 1
mov byte [ebp - 4], 3
je 0x40f7e1
sub eax, 1
jne 0x40f8f3
push ecx
mov ecx, esp
mov dword [ebp - 0x28], esp
push str.LangPath
call fcn.00401a40
mov ebx, dword [ebp - 0x10]
mov byte [ebp - 4], 8
test ebx, ebx
jl 0x40fdd3
cmp ebx, dword [ebp - 0x44]
jge 0x40fdd3
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.00402070
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.00402070
add esp, 4
add eax, 0x10
lea ecx, [ebp - 0x1c]
mov dword [edi], eax
push ecx
mov byte [ebp - 4], 3
call fcn.00406330
push eax
lea ecx, [ebp - 0x60]
mov byte [ebp - 4], 0xa
call fcn.00401ea0
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 0x40f71f
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
cmp ebx, dword [ebp - 0x44]
jge 0x40fdd3
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.00402070
add eax, 0x10
mov dword [edi], eax
add esp, 4
xor eax, eax
call fcn.004061f0
push ecx
mov ecx, esp
mov dword [ebp - 0x28], esp
push 0x44af20
mov word [ebp - 0x58], ax
call fcn.00401a40
mov byte [ebp - 4], 0xb
cmp ebx, dword [ebp - 0x44]
jge 0x40fdd3
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.00402070
add eax, 0x10
mov dword [edi], eax
mov dword [ebp - 0x18], esp
mov edi, esp
push esi
mov byte [ebp - 4], 0xc
call fcn.00402070
add eax, 0x10
mov dword [edi], eax
add esp, 4
lea eax, [ebp - 0x20]
push eax
mov byte [ebp - 4], 3
call fcn.00406330
mov eax, dword [eax]
push eax
call fcn.004278a0
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 0x40f8f6
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
jmp 0x40f8f6
mov esi, dword [ebp - 0x10]
test esi, esi
jl 0x40fdd3
cmp esi, dword [ebp - 0x44]
jge 0x40fdd3
mov ecx, dword [ebp - 0x48]
lea eax, [ecx + esi*4]
push eax
lea ecx, [ebp - 0x60]
call fcn.00401ea0
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.00401a40
mov byte [ebp - 4], 4
cmp esi, dword [ebp - 0x44]
jge 0x40fdd3
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.00402070
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.00402070
mov ecx, dword [ebp - 0x18]
add esp, 4
add eax, 0x10
mov dword [edi], eax
push ecx
mov byte [ebp - 4], 3
call fcn.00406330
mov eax, ebx
call fcn.004061f0
push ecx
mov dword [ebp - 0x34], esp
mov ebx, esp
push ecx
mov ecx, esp
mov dword [ebp - 0x34], esp
push 0x44af20
mov word [ebp - 0x58], ax
xor edi, edi
call fcn.00401a40
mov edx, dword [ebp - 0x10]
mov byte [ebp - 4], 6
cmp edx, dword [ebp - 0x44]
jge 0x40fdd3
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.00402070
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.00402070
mov ecx, dword [ebp - 0x18]
add esp, 4
add eax, 0x10
mov dword [ecx], eax
push ebx
mov byte [ebp - 4], 3
call fcn.00406330
mov eax, edi
call fcn.004061f0
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.00401a40
mov byte [ebp - 4], 0xd
test ebx, ebx
jl 0x40fdd3
cmp ebx, dword [ebp - 0x44]
jge 0x40fdd3
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 0x40f960
cmp eax, dword [esi]
jne 0x40f960
mov edi, esi
mov eax, 1
lock xadd dword [edx], eax
jmp 0x40f99b
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 0x40fdd8
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.00426a39
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 0x40f9d8
cmp eax, dword [esi]
jne 0x40f9d8
mov edi, esi
mov ecx, 1
lock xadd dword [edx], ecx
jmp 0x40fa13
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 0x40fdd8
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.00426a39
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.00406330
xor eax, eax
call fcn.004061f0
push ecx
mov ecx, esp
mov dword [ebp - 0x38], esp
push str.LangExt
mov word [ebp - 0x56], ax
call fcn.00401a40
mov byte [ebp - 4], 0xf
cmp ebx, dword [ebp - 0x44]
jge 0x40fdd3
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 0x40fa87
cmp eax, dword [edi]
jne 0x40fa87
mov ebx, edi
mov eax, 1
lock xadd dword [ecx], eax
jmp 0x40fac2
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 0x40fdd8
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.00426a39
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 0x40faf7
cmp eax, dword [esi]
jne 0x40faf7
mov edi, esi
mov edx, 1
lock xadd dword [ecx], edx
jmp 0x40fb32
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 0x40fdd8
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.00426a39
add esp, 0x10
lea edx, [ebp - 0x2c]
add edi, 0x10
mov dword [ebx], edi
push edx
mov byte [ebp - 4], 3
call fcn.00406330
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 0x40fba0
cmp dword [edi + 0xc], 0
lea ebx, [edi + 0xc]
jl 0x40fb93
mov edx, dword [eax]
cmp edx, dword [edi]
jne 0x40fb93
push eax
call fcn.00402070
mov dword [ebp - 0x28], eax
add esp, 4
or eax, 0xffffffff
lock xadd dword [ebx], eax
dec eax
test eax, eax
jg 0x40fb88
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 0x40fba0
mov eax, dword [ecx - 0xc]
push eax
push ecx
lea ecx, [ebp - 0x5c]
call fcn.00401f70
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 0x40fbc3
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.00401a40
mov ecx, dword [ebp - 0x10]
mov byte [ebp - 4], 0x12
cmp ecx, dword [ebp - 0x44]
jge 0x40fdd3
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 0x40fc21
cmp eax, dword [edi]
jne 0x40fc21
mov ebx, edi
mov edx, 1
lock xadd dword [ecx], edx
jmp 0x40fc5c
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 0x40fdd8
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.00426a39
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 0x40fc91
cmp eax, dword [esi]
jne 0x40fc91
mov edi, esi
mov edx, 1
lock xadd dword [ecx], edx
jmp 0x40fccc
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 0x40fdd8
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.00426a39
add esp, 0x10
mov ecx, dword [ebp - 0x24]
add edi, 0x10
mov dword [ebx], edi
push ecx
mov byte [ebp - 4], 3
call fcn.00406330
xor eax, eax
call fcn.004061f0
mov edi, dword [ebp + 8]
lea edx, [ebp - 0x60]
push edx
add edi, 4
mov dword [ebp - 0x54], eax
call fcn.00410540
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 0x40fd1a
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 0x40fd39
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 0x40f661
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 0x40fde9
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 0x40fda4
call fcn.0042787a
mov ecx, dword [esi + 0x10]
mov dx, word [ebp + 0x10]
cmp word [ebx + ecx + 8], dx
je 0x40fddd
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 0x40fd84
jmp 0x40fde9
call fcn.004181d3
call fcn.00413510
mov dword [ebp + 8], edi
cmp edi, 0xffffffff
jne 0x40fed3
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 0x40fe67
xor ebx, ebx
jmp 0x40fe10
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 0x40fe30
call fcn.0042787a
mov ecx, dword [esi + 0x10]
mov dx, word [ebp - 0x28]
cmp word [ecx + ebx + 0xa], dx
je 0x40fe5f
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 0x40fe10
jmp 0x40fe67
mov dword [ebp + 8], edi
cmp edi, 0xffffffff
jne 0x40fed3
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 0x40fed3
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 0x40fea4
call fcn.0042787a
mov ecx, dword [esi + 0x10]
cmp word [ecx + ebx + 0xa], 9
je 0x40fed0
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 0x40fe84
jmp 0x40fed3
mov dword [ebp + 8], edi
mov eax, dword [ebp + 8]
mov dword [esi + 0x1c], eax
mov esi, 1
cmp eax, 0xffffffff
jne 0x40fee6
mov esi, dword [ebp - 0x30]
lea ecx, [ebp - 0x4c]
mov byte [ebp - 4], 1
call fcn.0041f870
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 0x40ff15
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 0x40ff3b
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